Skip to content

Stop using type names and keywords as property names in examples #2403

Open
@jorisw

Description

@jorisw

Prerequisites

Description

Many of the examples in the playground are confusing and hard to read because of the terribly chosen property names.
I would deeplink to each of the playground pages if I knew how.

  • The first example is Simple, where a property name is boolean. This makes it look like a data type goes there, rather than the property name.

  • The second example is Widgets, where different ways to display a boolean choice, are configured under the property name boolean. This is completely non sensical and almost seems aimed at confusing the reader.

  • The third example is the naming of conditional of one of the properties under Schema Dependencies. This makes the reader think conditional is a key word.

New or returning users looking to the playground for quick examples are unnecessarily frustrated this way.

Proposal:

  • Never use field types as a literal name for a property in an example.
  • Don't name properties after the kind of example they're being used in such as conditional. Use property names that resemble the fictional data points in the example (such as credit card or pet name), so that the reader understands it's just an example name and not a keyword.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions