Code Monkey home page Code Monkey logo

Comments (4)

Garito avatar Garito commented on May 19, 2024 1

The point is not to invent the wheel everytime
Since openapi is the standard for api description and it includes schema description, seems logical to me not to invent a format and use the standard instead
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#schemaObject
It has everything you need to automatically build your gui's forms or it has a mechanism to pass the data anyway

from vue-formulate.

andrew-boyd avatar andrew-boyd commented on May 19, 2024

@Garito I'm not particularly familiar with openapi or how it would assist with generation. Would you mind clarifying what use case you're solving for?

from vue-formulate.

justin-schroeder avatar justin-schroeder commented on May 19, 2024

Thanks for the suggestion @Garito. I think I agree this would be a great value-add for the community. I think I see this happening in 2 steps. First, we need a more robust form generator solution — per #89. This expected JSON data will probably take the shape of the <FormulateInput> to:

  1. Reduce size
  2. Be really easy to hand-write JSON for.
  3. Be really easy to understand

Once that feature is implemented, then I could see an plugin for OpenAPI that effectively just transforms the data conforming to OpenAPI spec into "Vue Formulate" spec. That makes it a relatively small plugin, and keeps the spirit of Vue Formulate.

Great suggestion, thanks!

from vue-formulate.

justin-schroeder avatar justin-schroeder commented on May 19, 2024

Would love to see someone write a plugin for this. The documentation for the now-supported schema is available here: https://vueformulate.com/guide/forms/generating-forms

In the meantime i'm closing this issue since openapi is not something we'll be directly implementing, again — would be awesome to see community contribution around it.

from vue-formulate.

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.