You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deriving (FromJSON, ToJSON) via (AutodocodecConfiguration)
@@ -91,6 +92,7 @@ instance HasCodec Configuration where
91
92
<*> optionalField "whiteListedSchemas""A list of schema names (exactly as they are named in the components.schemas section of the corresponding OpenAPI 3 specification) which need to be generated. For all other schemas only a type alias to 'Aeson.Value' is created.".= configWhiteListedSchemas
92
93
<*> optionalField "outputAllSchemas""Output all component schemas".= configOutputAllSchemas
93
94
<*> optionalField "fixedValueStrategy""In OpenAPI 3, fixed values can be defined as an enum with only one allowed value. If such a constant value is encountered as a required property of an object, the generator excludes this property by default ('exclude' strategy) and adds the value in the 'ToJSON' instance and expects the value to be there in the 'FromJSON' instance. This setting allows to change this behavior by including all fixed value fields instead ('include' strategy), i.e. just not trying to do anything smart.".= configFixedValueStrategy
95
+
<*> optionalField "shortenSingleFieldObjects""When encountering an object with a single field, shorten the field of that object to be the schema name. Respects property type suffix.".= configShortenSingleFieldObjects
help "In OpenAPI 3, fixed values can be defined as an enum with only one allowed value. If such a constant value is encountered as a required property of an object, the generator excludes this property by default ('exclude' strategy) and adds the value in the 'ToJSON' instance and expects the value to be there in the 'FromJSON' instance. This setting allows to change this behavior by including all fixed value fields instead ('include' strategy), i.e. just not trying to do anything smart (default: 'exclude').",
booleanFlag "When encountering an object with a single field, shorten the field of that object to be the schema name. Respects property type suffix.""shorten-single-field-objects"Nothing
0 commit comments