Skip to content

The data schema generated is not in json format  #307

Open
@kenzhang-mark43

Description

@kenzhang-mark43

Tried the form builder here https://ginkgobioworks.github.io/react-json-schema-form-builder/
I can see the data schema is not in json format... so it is harder to test generated schema in the rjsf playground: https://rjsf-team.github.io/react-jsonschema-form/

should be quoted like

{
  "type": "object" ,
  "title": "hello"
}

This is what I get.

{
  type: 'object',
  title: 'hello',
  description: 'ta',
  properties: {
    newInput1: {
      enum: [
        '1',
        '2',
        '3'
      ],
      title: 'New Input 1',
      type: 'string',
      enumNames: [
        'Yes',
        'No',
        'Other'
      ]
    }
  },
  dependencies: {
    newInput1: {
      oneOf: [
        {
          properties: {
            newInput1: {
              enum: [
                '3'
              ]
            },
            Hello: {
              title: 'Hello,friend',
              type: 'string'
            }
          },
          required: []
        }
      ]
    }
  },
  required: []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions