Skip to content

Can't use property :key #140

@gcorreaalves

Description

@gcorreaalves

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions