Giter Club home page Giter Club logo

openapi-metamodel's People

Contributors

cawal avatar hamzaed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openapi-metamodel's Issues

Complete the JSON generator

The exporter only covers a part of the definition. We need to extend it to generate a complete OpenAPI definition from an OpenAPI model

Support for operations which remove a top-level security declaration.

To remove a top-level security declaration, an empty array can be used for the security field of an operation. With the actual implementation of the metamodel we cannot differentiate between operations that include an empty array for security and the operations which do not declare security.

bin.includes value(s) [bin/] do not match any files

Hi,
I tried to build the project using maven but it failed.
This is the exception:

[INFO] Reactor Summary:
[INFO] 
[INFO] OpenAPI 2 metamodel 2.1.0-SNAPSHOT ................. SUCCESS [  0.062 s]
[INFO] plugins ............................................ SUCCESS [  0.003 s]
[INFO] edu.uoc.som.openapi2.mm ............................ FAILURE [  0.497 s]
[INFO] edu.uoc.som.openapi2.io ............................ SKIPPED
[INFO] features ........................................... SKIPPED
[INFO] edu.uoc.som.openapi2.feature ....................... SKIPPED
[INFO] releng ............................................. SKIPPED
[INFO] edu.uoc.som.openapi2.target ........................ SKIPPED
[INFO] edu.uoc.som.openapi.update 2.1.0-SNAPSHOT .......... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.061 s
[INFO] Finished at: 2019-07-23T11:12:45-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.3.0:package-plugin (default-package-plugin) on project edu.uoc.som.openapi2.mm: /home/miguel/Downloads/openapi-metamodel-2.1.0/openapi2/plugins/edu.uoc.som.openapi2.mm/build.properties: bin.includes value(s) [bin/] do not match any files. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :edu.uoc.som.openapi2.mm

It can be fixed if you remove "bin/" from build.properties#L8.

Thanks,
Miguel

PD: Any plans for releasing the metamodel to a maven repository? No pressure at all---I could continue working with jitpack.

Add support for tuple items

The current implementation of the metamodel uses items to set the type of the items of an array in a Schema definition.

However, even though it's not common in OpenAPI definitions, JSON schema allows the definition of tuples by setting the value of items to an array where each item is a Schema which corresponds to the type of each index.

The importation fails when `items``contains an array (tuple definition) instead of an object (array definition).

OpenAPI3 Model misses "name" for Property

Hello,

While comparing and reading into the model, I found that the "Property" Class misses the attribute "name".
(In the OpenAPI2 Model, it is realize)
Because of that, it will not be possible to refer to properties by their name.

Thanks and Best Regards,
UniMa007

Response Definition and Response Object

The actual implementation does not allow the creation of a response definition which could be used by many operations. A response definition a response which could be declared at the API level and used by operations for a particual HTTP Status or as default response.

Thanks for your work

Hello Hamza,

Thanks for your work and your open source contribution to an OpenAPI 3 meta model.
Such a metamodel can be very useful for M2M transformations of APIs, thus potentially bridging the GAP between "TransferObjects" and "Business Objects" in a very rigorous way.

Do you have a link to buy you a beer? :)

Regards,

M.

Unable to Run the project

I have tried to execute and see the report ( i.e mvn test) but no output generated in that project. could you please let me know the procedure or commands for testing this model.

Improve the design of referenceable elements

The elements Parameter, Response, Schema, and SecuityDefinition can be included in the API element and be referenced elsewhere in the definition. We should unify how this is done across all theses elements (using a super class).

Improve the design of required properties

Required properties are designed as a reference in the Schema element. Now that we separated schema from schema properties (we introduced a new Property element), it would be better to include a boolean attribute in the Property element to specify required properties. We also need to update the importer and exporter accordingly.

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.