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

Getting arrays #12

Open
Mvwivs opened this issue May 28, 2020 · 0 comments
Open

Getting arrays #12

Mvwivs opened this issue May 28, 2020 · 0 comments

Comments

@Mvwivs
Copy link

Mvwivs commented May 28, 2020

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']

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