Skip to content

Getting arrays #12

@Mvwivs

Description

@Mvwivs

Expected way of getting arrays doesn't seem to work:

//...
'@context': {
  property: 'sh:property',
}
properties: {
  property: {
    type: 'array',
    items: {
      type: 'object',
    },
  },
}

Requesting data with given schema would not work, because array objects require @type field. Is this desired behavior?
Here is what I need: property: ['ex:AddressProperyShape', 'ex:AgePropertyShape']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions