Closed ektrah closed 1 year ago
Hmm, Yes and no. The JSG in the spec spares the reader of some details. Some readers, however, pay attention to details (looking your direction). The JSG that I use for testing has a directive that disables the type expectation for ObjectLiteral:
.TYPE type - ObjectLiteral
(The meaning is: expect the production name (e.g. Schema
, ShapeDecl
, ShapeOr
, …) as type
everywhere except those productions referenced after the -
. Maybe there's a clearer name for .TYPE
; maybe .PRODNAME
? JSG can still change.)
So now the Q is do I
Thanks for the confirmation. I think a brief note on this exception in §2.1 would be quite helpful.
First commit above was on the wrong branch. Second produces the note at the bottom of the editor's draft. I tried to work it in near the top but "These are express in JSON as…" became pretty tenuous.
Feel free to close this issue if you feel it's address.
Most of all, thanks for improving the spec!
for posterity, markup errors fixed in 8343717 c.f. https://github.com/shexSpec/spec/runs/7948878949?check_suite_focus=true
Section 2.1 currently says:
And Section 5.4 defines:
Is there a conflict between
type
andtype
?