Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot write even basic schema #19

Open
OnkelTem opened this issue Mar 7, 2019 · 1 comment
Open

Cannot write even basic schema #19

OnkelTem opened this issue Mar 7, 2019 · 1 comment

Comments

@OnkelTem
Copy link

OnkelTem commented Mar 7, 2019

I cannot explain why my schema doesn't work, I just continue getting some frustrating error message not explaining anything.

Sample input:

database:
  type: sqlite
  params:
    path: "some_path"

Schema:

root:
  _type: array
  _children:
    database:
      _type: array
      _required: true
      _description: "Database details"
      _children:
        type:
          _required: true
          _type: text
          _description: "Database plugin to use: sqlite, mysql, etc... Check the list of available db plugins."
        params:
          _required: true
          _type: partial
          _description: "Database plugin parameters."
          _partial: sqlite


partials:
  sqlite:
    _type: array
    _required: true
    _children:
      path:
        _type: text
        _required: true

And the error message I'm getting:

Unable to validate schema with error: The choice node 'node' is invalid with error: The value 'array' is not allowed for node 'node_text._type'

So it is saying about node. I don't have any node. And I don't have any arrays inside texts - just check it out above.
What I do wrong eh?

@romaricdrigon
Copy link
Owner

Hello,

For some reason I did't get a Github notification, sorry for the delay :(
I'm having a look and getting back to you asap!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants