You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are designing the error code system for the new FHIRSchema validator. The validator returns ValidationIssue[] (empty = success) with codes like fs101, fs107, etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Context
We are designing the error code system for the new FHIRSchema validator. The validator returns
ValidationIssue[](empty = success) with codes likefs101,fs107, etc.See full draft:
docs/new/error-codes.mdThe question
For primitive type validation, should we have two levels or one level of error codes?
Option A: Two levels (JSON type then FHIR literal)
First check JSON type, then validate the literal:
Pros:
Option B: Single level (FHIR type only)
One code per FHIR type covers both JSON type and literal:
Pros:
FHIR primitive type tree
What do you think?
Which approach is better for a validator that aims to become a community spec?
Beta Was this translation helpful? Give feedback.
All reactions