-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
As per discussion in issue #150 , there are a number of cases where one wishes to associate specific styling with certain structures. While one can use "format" for this, even though it is part of the spec drafts, I find the term and usage of "format" problematic for two reasons:
- While JSON Schema may not impose validation on whether something is a URL, there is at least a semantic/structural connotation that the item is a URL--this is quite different from a mere formatting hint. In my opinion, it is very appropriate to indicate inline with the schema that something is a URL, but "format" is an unfortunate choice, imo, even if it may also have formatting connotations.
- More relevant to JSON Editor itself, analogous to avoiding the problems faced by HTML with inline styling, it would be great if genuine formats (mere stylistic choices) could be associated to their objects by something like JSONPath in the equivalent of a "head" of the schema, if not entirely out of the schema and supplied as options to the editor.
Metadata
Metadata
Assignees
Labels
No labels