* [python-fastapi] Apply constraints to models
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Use pydantic types to validate models fields
Some data formats can be validated by annotating fields with some
special pydantic data types (EmailStr, forr example).
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Updated samples
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [dart][dart-dio] Add support for query collection parameter format
* add support for collectionFormat in query parameters and www-url-encoded content
* add tests
* remove empty query parameter maps from generated code
* closes#6681
* closes#9522
* closes#8271 (the last remaining parts)
* Fix formatting
* [python-fastapi] Ignore some flake8 warnings
1. Some of the "imported but not used" warnings are there because
it is not easy to express what should be imported in mustache template
language. These warnings are silenced in order to keep the templates
morre readable.
2. Single quotes -> Double quotes (for consistency).
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Added flake8 config
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Set extra constraints on values
It is important to set all constraints (pattern, greater than, etc.)
on values of all arguments, because FastAPI can handle them automatically.
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Updated samples
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [swift5] Rename the API class to {{projectName}}
Instead of {{projectName}}API. This removes some unnecessary naming
complexity.
* [swift5] Define models and Configuration classes under namespace
When swiftUseApiNamespace is set, API classes get defined under the
projectName namespace. This does the same for models and the
Configuration class. Plus adding a deprecation warning when using the
un-namespaced variants.
* [swift5] Use CodingKeys in model decoder
Fixes: 0f5e7d1e3cb9 ("Swift5 models improvements (#9205)")
* [swift5] Add swiftUseApiNamespace to urlsessionLibrary config
* Update samples
* Try to reduce model changes
Co-authored-by: Bruno Coelho <4brunu@gmail.com>
And update to Kotlin 1.5.0 and kotlinx.serialization 1.2.1. Fix nested
enum annotation '@Serializable' instead of '@KSerializable' when
'kotlinx_serialization' is used. Fix missing JsonMediaType in
ApiClient.kt (#9242). Add 'kotlinx_serialization' serialization library
to documentation. Use explicity type in RequestConfig to keep type
information for JSON serialization.
Resolves#9242
* [python-fastapi] Added new generator
See https://fastapi.tiangolo.com/ for more details about FastAPI
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [python-fastapi] Added samples
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* [cpp-restsdk] Update json double/float parse.
Fix cpp-restsdk double and float parse.
double.NaN was parsed when server doesn't ensure the floating point value has decimal point in in.
* Update docs & samples.
* remove deprecated author field from all pubspec templates
* improve dart-dio-next readme/markdown documentation
* add a lot of dart-doc to model and API classes
* changed correct values
* Updated virtualan version
* updated the correct version
* Updated with latest version
* Update pom.xml
* Updated with 2.5.0
* Updated with db 2.5.0 version
* Adds getter + setter methods for isShortInteger in IJsonSchemaValidationProperties
* Adds isShortInteger to CodegenModel
* Adds isShortInteger to CodegenProperty
* Adds isShortInteger to CodegenParameter
* Adds isShortInteger to CodegenResponse
* Ensures that samples are up to date
* Changes interface to isShort
* Removes typescript file
* Adds isShort to CodegenModel and CodegenProperty instances
* Samples updated, shows too many changes across generators
* Adds isUnboundedInteger and implements it in CodegenModel
* Adds isUnboundedInteger to COdegenProperty
* Adds isUnboundedInteger to CodegenParameter
* Adds isUnboundedInteger to CodegenResponse
* Regenerates samples and docs
* Adds testBooleansSetForIntSchemas
* Fixes integer tests
* [kotlin][client] fix Android crash on API level
* [kotlin][client] update sample project
* Try to fix CI
* [kotlin][client] add flag to control android api level supported
* [kotlin][client] update docs
* [kotlin][client] update docs
* [dart][dart-dio] Improve support for file uploads
* add support for filenames in multipart requests by using `MultipartFile` from dio directly
* add support for binary/file body data
* fixes#6671
* fixes#9079
* Add and fix tests
* Only use MultipartFile for body/multipart parameters
* Fix test
* Actually fix tests
* initil tiny client generator
* Helper string
* WIP: added helper file with json helper functions
* WIP: model implementation.. Working on JSON
* Added codegen files for model and helper
* WIP: toJson()
* Added mapping configurations
* Upadet string compare
* Removed redundant namespaces
* Added files for example
* fixed syntax errors
* fixed syntax errors
* header generation
* unittest example for pet class
* Refactored mustache & fixed logical errors
* WIP: unit test mustache format
* Removed legacy file
* mustache service
* Declare service in Java file
* Removed legacy file
* removed legacy code
* Documentation
* Added folder structure + new supporting files
* Added file to run all unittests
* Refactored unit tests
* typemappings and new paths
* First service impl
* Added esp32 and esp8266 env
* Added default values
* Added cli option to specify controller
* added type decl method
* Added stringify methods
* service get requests
* Fix helper header
* post merge fix
* fix long test
* Tiny namespace
* remove shared pointer
* include petapi
* stringify
* return problems
* Canged logic for response-body handling
* Implemented last logic for reponse handeling
* Implemented constructor logic
* first tiny sample
* update basepath to petstore v3
* standard main example
* root certificate example
* root folder
* TODO cleanup
* exclude features
* supports delete again!👷
* remove todo ❌
* new main example ❣️
* new main example ❣️
* Make our feature set realistic
* fix indentation
* HTTP / HTTPS Connection
* Root certificate sample
* https vs http 👨🏻🔬
* fix lint in template
* default value for controller in config
* new readme 📜
* remove old comments
* removed unused testfile
* no default root certificate
* new main
* remove test
* Update platformio.ini.mustache
🤷♂️
* Update platformio.ini.mustache
remove native
* added support info
* Add namespace to Pet 🐅
* bourne compatibility fix
* spelling error in python file
* bourne python script 🐍
* Version bump
* Add bourne script to readme
* update main sample, from template
* pre_compiling_bourne.py.mustache to samples folder 📃
* set header Content'type to json
* map todo🗺️
* remove unused debug flag⚒️
* added support for ESP8266 ༼ つ ◕_◕ ༽つ
* added new sample for ESP32 📀
* 🎯
* removed use of namespace std ❌
* removed use of "__" in variables
* removed unused code in destructor
* fixed type comparison
* move default ctor to header
* added zero initialized primitive variables
* moved variable to TypeMappings
* updated ifndefines
* Extra comment for build error in standard example 🦸🏽
* afer cpp-ish cast from std::string to uint8* cast🏰
* excluded maps type
* Documentation og generator
Co-authored-by: kaareHH <kaare.hattel@gmail.com>
Co-authored-by: mkakbas <45030188+mkakbas@users.noreply.github.com>
Co-authored-by: mkakbas <martinkandersen1@gmail.com>
* [dart] Improve content-type handling
* fixes#9334
* superseeds #9454
* use `prioritizedContentTypes` in the same way `JavaClientCodegen` does
* move `application/json` to the front if it exists
* don't do anything if it is multi-part or url-encoded as for this the first content-type already needs to match
* log warning if an unsupported content-type is first after prioritizing
* remove some unused code blocks from dio generators
* Only use first prioritized content-type in dio generators
* don't default to any content-type in dio-next, dio defaults itself to JSON
* Introduce FileParameter as an abstraction
* Update Samples
* Add new file to samples
* Fix hardcoded package name
* Fix hardcoded package name, import FileParameter in Model
* Remove unneccesary warning
* [dart] Move Dart samples from CircleCI to Github actions
* Fix format failing with latest Dart version
* Workflow naming
* Split dart samples depending on version
* use fixed version to prevent flaky builds
* Change branch pattern for release branches
* Huge update for php-mezzio-ph generator:
- proper container support for data types
- support for query parameter references and query parameter schema references
- dependency update (PHP 7.3+, PathHandler 0.7+, DataTransfer 0.5+)
* Sample regeneration after rebasing for php-mezzio-ph
* - added custom CLI option for php-mezzio-ph to generate code using modern PHP syntax
- removed obsolete php-mezzio-ph samples in samples/openapi3/server/petstore/php-mezzio-ph
* - fixes for JavaDoc declarations that seems to break CI
* - fix for outdated sample file
* [Kotlin] [#8809] Allow optional header parameters with Kotlin and retrofit2
* [Kotlin] [#8809] Update sample client
* [Kotlin] [#8809] Replace mustache dot notation with more classic style
* [Kotlin] [#8809] Remove new line at the end of the mustache template