Open caponetto opened 5 months ago
Consider the following JSON Schema:
{ "$id": "classpath:/schemas/yamlgreet__main-schema.json", "title": "Data Input Schema", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "language": { "title": "Language", "description": "Language to greet", "type": "string", "enum": ["English", "Spanish"], "default": "English" }, "name": { "title": "Name", "description": "Name of the person", "type": "string", "default": "John Doe" } }, "required": ["name"] }
Both properties include a default value but they are not shown in the start form:
default
Here is an example of the expected form (using another form generation library).
If you inspect the generated openapi.json file by the engine, you'll notice that the default value is not there.
openapi.json
{ "title":"Data Input Schema", "required":[ "name" ], "type":"object", "properties":{ "language":{ "title":"Language", "description":"Language to greet", "type":"string" }, "name":{ "title":"Name", "description":"Name of the person", "type":"string" } } }
FYI @fjtirado @paulovmr
Consider the following JSON Schema:
Both properties include a
default
value but they are not shown in the start form:Here is an example of the expected form (using another form generation library).
If you inspect the generated
openapi.json
file by the engine, you'll notice that the default value is not there.