romaricdrigon/MetaYaml

Cannot write even basic schema

Opened this issue · 1 comments

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?

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!