Coder Social home page Coder Social logo

Comments (3)

dmartinezg avatar dmartinezg commented on June 21, 2024

The initial drafts had these, requires should be a list.

BUT, If we add it, then we need to add conflicts to indicate that this parameter cannot be used with others.

And then, you will want to say, required only if parameterA == 'valuea' and not if parameterB == 'valueB'.

We call this feature, by the general theme: dependencies and we do not have a clear answer for it yet.

from raml-spec.

Philzen avatar Philzen commented on June 21, 2024

+1 reg. adding a conflicts property , see #38

At least i'm looking for a way to avoid having statements like "don't use with parameter xy..." in a description. For the example of Oauth2, maybe a smart conflicts property could capture conflicts when a certain named parameter is set to a specific value, i.e. conflicts: { namedParameter: "conflictsIfNamedParameterHasThisValue"}

from raml-spec.

Philzen avatar Philzen commented on June 21, 2024

@blakeembrey Regarding the lat/lon example - there's a simple alternative to it, namely requiring a combined parameter. I've see that in the google elevation api (?locations=64.330000,7.500000), and in the api i'm currently building we simply refer to the geouri formatting rules defined in RFC5870 - which is effectively the same plus optional altitude and uncertainty values.

from raml-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.