Show HN: Puns from Wikipedia Page Titles
I made a site that creates puns using Wikipedia page tiles as the source of pun phrases
I made a site that creates puns using Wikipedia page tiles as the source of pun phrases
What is the best way to require a key value pair in python, where the key is an invalid identifier? See below for additional requirements.The requirements for the ingestion of this dict payload are are: 1. there is a valid identifier 'a', with type int that is required 2. there is an invalid identifier '1req' with type string that is required 3. additional properties can be passed in with any...
Some reasons to use it:
- it preserves spec case in model properties and endpoints
- it enforces run time type checking
- it has more robust composition (oneOf/anyOf/allOf) than the python generator
- it has type hints
- api loading is quicker (one can load one endpoint vs all of them automatically loading previously)
- one can check if an instance validated against a schema by checking if the instance is an instance of the schema class
- it uses python >= 3.9
- it includes type: string format: number Decimal support so now you can send numbers as strings and preserve precision
- enums are now accessible as class constants
- uniqueItems validations added
- multiple content types supported in endpoint request bodies + responses