Giter Site home page Giter Site logo

Discussion of the meaning of optional about spec HOT 7 OPEN

jskeet avatar jskeet commented on September 13, 2024
Discussion of the meaning of optional

from spec.

Comments (7)

jskeet avatar jskeet commented on September 13, 2024

Quick audit of the use of "optional" within the cloudevents directory of this repo:

  • Lots of descriptions of what OPTIONAL means
  • Support for any extension is optional
  • WebHook-Request-Callback header is optional
  • Description of various attributes as optional
  • JSON numbers have an optional - prefix (optional in terms of syntax only, of course - required for negative numbers!)
  • Whitespace is optional around header values in HTTP and NATS
  • Kafka: "This spec provides an OPTIONAL definition to map the key section of the Kafka record, without constraining the user to implement it nor use it." (Would need to look more carefully to see what that means)
  • Data element being optional in XML format

So I think it would be reasonably straightforward to tweak the spec to use "optional" only in terms of "this aspect of data may be present or absent" and use MAY to define features that conformant implementations don't have to implement.

from spec.

jskeet avatar jskeet commented on September 13, 2024

My next step will be to create a draft PR to separate optionality of data from optionality of implementation, but I haven't made any progress on this yet.

from spec.

github-actions avatar github-actions commented on September 13, 2024

This issue is stale because it has been open for 30 days with no
activity. Mark as fresh by updating e.g., adding the comment /remove-lifecycle stale.

from spec.

jskeet avatar jskeet commented on September 13, 2024

/remove-lifecycle stale

from spec.

github-actions avatar github-actions commented on September 13, 2024

This issue is stale because it has been open for 30 days with no
activity. Mark as fresh by updating e.g., adding the comment /remove-lifecycle stale.

from spec.

jskeet avatar jskeet commented on September 13, 2024

/remove-lifecycle stale

from spec.

github-actions avatar github-actions commented on September 13, 2024

This issue is stale because it has been open for 30 days with no
activity. Mark as fresh by updating e.g., adding the comment /remove-lifecycle stale.

from spec.

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.