media-types icon indicating copy to clipboard operation
media-types copied to clipboard

Change transclude from string to boolean in JSON example

Open smizell opened this issue 10 years ago • 3 comments

I was working on the schema for this example and it failed with the transclude since it was a string and I was looking for a boolean. I changed the example on Hyperschema.org to make it validate. Do you want transclude to be a boolean in the JSON format?

smizell avatar May 09 '14 02:05 smizell

pretty sure this is going to morph into another "magic string" enumeration[1]. right?

[1] https://github.com/mamund/media-types/issues/24

mamund avatar May 09 '14 13:05 mamund

Yes, I agree. I was writing the schema to the current spec state. When the spec changes, I'll convert that over to an enumeration.

When the change happens, will the spec change to a new version? If so, I could refer to the current schema as 1.0 and then make a new schema for the next version with the new transclude functionality. Or is all the current change proposals for a final 1.0?

smizell avatar May 09 '14 13:05 smizell

spec is "floaty" but will def mark an internal v change for you.

mamund avatar May 09 '14 13:05 mamund