mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 07:42:45 +00:00
[python-client] Add model default values (#1776)
* Adds two models to the v2.0 spec, uses examples as defaults in python client * Adds array default and type_holder_default and type_holder_example tests * Re-generated python security client with ./bin/security/python-petstore.sh * Changes comment text, rebased master * Updates client + server samples * Adds missing samples updates * Changes python client to look for true or false with booleans in toDefaultValue * Changes boolean casting to use Boolean.valueOf * Adds deserialization fix for python tests * Changes Mock to namedtuple in python deserialization tests * Actually remove unittest.mock
This commit is contained in:
committed by
William Cheng
parent
189849319c
commit
539ec23298
@@ -53,5 +53,7 @@ main =
|
||||
propMimeEq MimeJSON (Proxy :: Proxy ReadOnlyFirst)
|
||||
propMimeEq MimeJSON (Proxy :: Proxy SpecialModelName)
|
||||
propMimeEq MimeJSON (Proxy :: Proxy Tag)
|
||||
propMimeEq MimeJSON (Proxy :: Proxy TypeHolderDefault)
|
||||
propMimeEq MimeJSON (Proxy :: Proxy TypeHolderExample)
|
||||
propMimeEq MimeJSON (Proxy :: Proxy User)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user