Skip to content

Enhancement: healJSONSchema better handle hard-coded values #4374

Closed
@gilgardosh

Description

@gilgardosh

JSON schema:

"anyOf": [
  {
    "type": "integer"
  },
  {
    "minimum": -90
  },
  {
    "maximum": 90
  }
]

converted to:

fields: [
  {
    name: 'Int',
    type: {
      name: 'Int',
    },
  },
  {
    name: 'JSON',
    type: {
      name: 'JSON',
    },
  },
],

Better outcome: the 2 last options should be converted to number instead of JSON

Even better: generate a scalar to check if the value is higher or lower

More info:

  • add type number in healJSONSchema
  • then in getComposerFromSchema generate a scalar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions