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

Can't use property :key #140

Open
gcorreaalves opened this issue Mar 10, 2023 · 0 comments
Open

Can't use property :key #140

gcorreaalves opened this issue Mar 10, 2023 · 0 comments

Comments

@gcorreaalves
Copy link

I'm trying to implement a schema with key and value properties, but I getting an error.

schema Object, :Sample do
    property(:key) { key :type, :string }
    
    value do
      type :integer
      minimum 1
      maximum 100
    end
  end

image

schema Object, :Sample do
    key { key :type, :string }
    value { key :type, :integer }
 end

image

Is there a way how to achieve this?

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

1 participant