Skip to content

Allowing "format" designations via JSONPath expressions #156

@brettz9

Description

@brettz9

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:

  1. 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.
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions