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
modify CSB to blindly include any constraint element without validation
add alternative CSB support for providing full Json schema (i.e. independently of input variables and constraints)
Additional Context
Currently adding a constraint with the following produces no error message at build or serving, but the served v2/catalog does not include the items element in the JSON Schema.
provision:
plan_inputs: [ ]user_inputs:
- required: truefield_name: endpointstype: arraydetails: The endpoints of all app instancesconstraints:
items:
type: string
Hi @gberche-orange, is this something you still want? We don't still have bandwidth to tackle this request and it has been open for contributions for a long time now. Would you be able to submit a PR?
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
The Json schema for array (see https://json-schema.org/understanding-json-schema/reference/array.html#list-validation ) requires support for the
items
elementWithout this element, OSB client form generator such as https://github.com/cloudfoundry/stratos don't generate the entry for the parameter of type
array
details of rendering without `items` keyword
Json schema generated by CSB, which is missing the
items
elementRendering without
items
json schema elementRendering with
items
json schema element (note the yellow button to add new array entries)Json schema fragment with
items
See https://hamidihamza.com/ajsf/?set=ng-jsf&example=ng-jsf-nested-arrays&framework=material-design&language=en for live demo of Json schema form generation
Describe alternatives you've considered
items
constraint elementAdditional Context
Currently adding a constraint with the following produces no error message at build or serving, but the served
v2/catalog
does not include theitems
element in the JSON Schema.Fails at catalog serving with output:
Priority
Priority Context
Platform
Applicable Services
The text was updated successfully, but these errors were encountered: