fantonangeli commented on PR #3110: URL: https://github.com/apache/incubator-kie-tools/pull/3110#issuecomment-2864279071
:sos: **Help wanted** :sos: @tiagobento @ljmotta @ricardozanini @fjtirado @tiagobento I used a convention already defined in Uniforms: https://github.com/vazco/uniforms/blob/60080e0fd49ad05d567137e910ebba5caf4de3e7/packages/uniforms/src/createAutoField.tsx#L26 But I still have to discover a better way to tell `@kie-tools/uniforms-patternfly` to show a Code Editor: Let me share my analysis: 1. `{"type": "string", "uniforms": { "language": "json" }}` :green_circle: Uniforms-patternfly :red_circle: Quarkus: the propriety is missing in `/q/openapi.json` 2. `{"type": "string", "format": "json"}` :red_circle: Uniforms-patternfly: `Invalid definition for x field: "format" is not a supported property` :green_circle: Quarkus 3. `{"type": "string", "language": "json"}` :red_circle: Uniforms-patternfly: `Invalid definition for x field: "language" is not a supported property` :red_circle: Quarkus: the propriety is missing in `/q/openapi.json` 4. `{"type": "json"}`, this is not a valid "primitive" type :red_circle: Uniforms-patternfly: `Invalid definition for x field: "type" may not be an object. Change it to Object` :red_circle: Quarkus: `Cannot deserialize value of type `org.eclipse.microprofile.openapi.models.media.Schema$SchemaType` from String "json"` 5. `{type: "object"}` without a defined `properties: {}` inside means JSON Code Editor, with `properties:{...}` is a nested object (original way) :green_circle: Uniforms-patternfly :green_circle: Quarkus 6. ` {type: String, additionalProperties:{ codeEditorFormat:"json" }} ` :red_circle: Uniforms-patternfly: `Invalid definition for x field: "additionalProperties" is not a supported property` :red_circle: Quarkus: the propriety is missing in `/q/openapi.json` IMO Solution 5 is a kind of workaround, but it's the only working ATM. If there is a way to send custom properties in the `openapi.json` and receive in the `uniforms`, we are open to new possible feature in the future. Please let me know your suggestions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
