GithubHelp home page GithubHelp logo

Comments (5)

stevespringett avatar stevespringett commented on June 18, 2024 1

Thanks for reporting @agschrei . Fix will be included in the upcoming v1.6 specification.

from specification.

jkowalleck avatar jkowalleck commented on June 18, 2024

checked, can confirm for JSON:

  • name optional
  • value optional
  • additional properties allowed
  • see
    "property": {
    "type": "object",
    "title": "Lightweight name-value pair",
    "properties": {
    "name": {
    "type": "string",
    "title": "Name",
    "description": "The name of the property. Duplicate names are allowed, each potentially having a different value."
    },
    "value": {
    "type": "string",
    "title": "Value",
    "description": "The value of the property."
    }
    }
    },

in contrast to the JSON, the XML defines

  • name is mandatory
  • value is implicit kind of optional (implicit allows empty string)
  • no additional properties/children allowed
  • see
    <xs:complexType name="propertyType">
    <xs:annotation>
    <xs:documentation>Specifies an individual property with a name and value.</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
    <xs:extension base="xs:normalizedString">
    <xs:attribute name="name" type="xs:string" use="required">
    <xs:annotation>
    <xs:documentation>The name of the property. Duplicate names are allowed, each potentially having a different value.</xs:documentation>
    </xs:annotation>
    </xs:attribute>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>

in contrast to JSON, the Protobuff defines

  • name is mandatory
  • value is optional
  • no additional properties/children allowed
  • see
    message Property {
    string name = 1;
    optional string value = 2;
    }

from specification.

jkowalleck avatar jkowalleck commented on June 18, 2024

@stevespringett if the XML & ProtoBuff are the intended solutions,
should I target a bug fix of the JSON for the upcoming v1.6 then?

from specification.

stevespringett avatar stevespringett commented on June 18, 2024

Yes please. Thanks @jkowalleck

from specification.

agschrei avatar agschrei commented on June 18, 2024

Thanks to both of you for the quick turnaround on this!

from specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.