Skip to content

Feedback to rfc8927 #8

Open
Open
@moander

Description

@moander

Not sure where to post feedback to the spec so I try here.

I just discovered JTD and think it's a good idea to have a spec designed to produce POCO objects in any language. After trying to write a simple schema builder in Vue I have a few questions/comments to the spec.

  1. Why optionalProperties instead of an optional bool like the nullable option?

  2. What is the psudo code to figure out if a form is primitive or complex type? I ended up with

if (properties || optionalProperties || discriminator || elements || items) // object
if (enum || type == "string" || type == "timestamp") // string
  1. Why no int64 / uint64?
  2. The uint8 is nice to have for buffers/byte arrays but I think int8, int16, and uint16 should be removed from the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions