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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Core classes that store schemas:
CodegenModel
CodegenProperty
CodegenParameter
CodegenResponse
are missing schema.required information which is a list of strings
At first glance it looks like requiredVars may contain this info but that's not true
That only stores properties whose names are in required.
So if a property is an additionalProperty (not defined in properties) then it does not make it into requiredVars @wing328 @jimschubert @cbornet @ackintosh @jmini @etherealjoy @sebastien-rosset
Feature: jsonschema.required
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Add requiredPropertyNames to:
CodegenModel
CodegenProperty
CodegenParameter
CodegenResponse
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Core classes that store schemas:
are missing schema.required information which is a list of strings
At first glance it looks like requiredVars may contain this info but that's not true
That only stores properties whose names are in required.
So if a property is an additionalProperty (not defined in properties) then it does not make it into requiredVars
@wing328
@jimschubert
@cbornet
@ackintosh
@jmini
@etherealjoy
@sebastien-rosset
Feature: jsonschema.required
openapi-generator version
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
Add requiredPropertyNames to:
The text was updated successfully, but these errors were encountered: