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

Instance property must be an Array, not an Object #114

Closed
markkramerus opened this issue Jan 22, 2020 · 3 comments · Fixed by #134
Closed

Instance property must be an Array, not an Object #114

markkramerus opened this issue Jan 22, 2020 · 3 comments · Fixed by #134
Assignees
Labels
bug Something isn't working released Available in an official SUSHI release

Comments

@markkramerus
Copy link
Collaborator

Elements that are defined as 0..* in resources must be JSON arrays in the instance, even if the cardinality has been constrained, or the array contains just one value. It appears array elements are being rendered as Objects rather than Arrays.

Example -- on master branch, at commit https://github.com/standardhealth/fsh-mcode/commit/4948b6ebe0018ddf2f9d8d8c53a469de972f059d

Example: build\input\resources\Condition-mCODEComorbidConditionExample01.json

IG Publisher reports: Condition.category | error | This property must be an Array, not an Object

@cmoesel
Copy link
Member

cmoesel commented Jan 22, 2020

Hmm... this was something that we intentionally tried to support and I think we even have unit tests that show it working, but there must be some edge case that was missed. Thanks for reporting.

@cmoesel cmoesel added the bug Something isn't working label Jan 22, 2020
@jafeltra jafeltra self-assigned this Jan 22, 2020
@cmoesel cmoesel added the merged label Jan 24, 2020
@cmoesel
Copy link
Member

cmoesel commented Jan 24, 2020

Re-opening until it is released.

@cmoesel
Copy link
Member

cmoesel commented Jan 24, 2020

Fixed in 0.6.2

@cmoesel cmoesel closed this as completed Jan 24, 2020
@cmoesel cmoesel added the released Available in an official SUSHI release label Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Available in an official SUSHI release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants