Coder Social home page Coder Social logo

Cardinality question about ids HOT 7 CLOSED

pjanck avatar pjanck commented on August 28, 2024
Cardinality question

from ids.

Comments (7)

aothms avatar aothms commented on August 28, 2024 1

Good point.

We specifically discussed that wouldn't want to support cases like "For wall I need exactly two properties" even if the schema would allow that (hence the table).

This is first and foremost in the required category.

There's several questions here I guess:

  • Should the docs be updated?
    • State maxOccurs can be "1 or unbounded" for the required case (or leave it empty)? To disambiguate requiring exactly one or at least one?
    • Should the statement "they do not have any meaning" be refined? What does it mean: Is it allowed? Implementation dependent?
  • Is it ever meaningful to require an upperbound other than zero (because the docs seem to say "no" and I can live with that answer). In that case maybe it's better to require maxOccurs to be set to unbounded as the table suggests.

My take on this is: change the sentence to "other permutations are currently not allowed" and update the sample to unbounded.

from ids.

NickNisbet avatar NickNisbet commented on August 28, 2024

from ids.

CBenghi avatar CBenghi commented on August 28, 2024

I support @aothms view on this.
See PR #147 if agreeable.

from ids.

CBenghi avatar CBenghi commented on August 28, 2024

#147 has been merged. This issue can be closed.

from ids.

pjanck avatar pjanck commented on August 28, 2024

The examples weren't updated, thus making them invalid (compare 17f3b66 with point 2 above). I request to reopen the issue / should I open a new one?

from ids.

berlotti avatar berlotti commented on August 28, 2024

We prefer you fix the examples and create a pull request

from ids.

CBenghi avatar CBenghi commented on August 28, 2024

@berlotti and @pjanck,
As part of the auditing tool I'm writing, I'll take care of creating a new PR soon with the fixes for the Development files.
I'll need to liaise with @Moult for the testcases because they are programmatically generated outside of this repository.

from ids.

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.