Giter Club home page Giter Club logo

Comments (9)

tfesenko avatar tfesenko commented on June 16, 2024

path value for method parameters in

Line 26 of the default model defines the "path" value. However, content-assist does not provide it.

        in: "path"

from kaizen-openapi-editor.

tfesenko avatar tfesenko commented on June 16, 2024

"$ref" key not provided by content-assist

UPD: now it works

Line 34 of default model:

          schema:
            $ref: "#/definitions/TaxFilingObject"

from kaizen-openapi-editor.

tfesenko avatar tfesenko commented on June 16, 2024

type keyword in definitons and properties

There is no code assist for type value of definition or property, e.g.

definitions:
  TaxFilingObject:
    type: "object"

and (for filingID)

  TaxFilingObject:
    type: "object"
    description: "An individual Tax Filing record, accessed by its ID"
    properties:
      filingID:
        type: "string"

Parameters type works fine.

from kaizen-openapi-editor.

tfesenko avatar tfesenko commented on June 16, 2024

Content-assist for value of schema/$ref

It would be good to provide content assist for responses/schema/$ref which would calculate available refs to definitions.

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on June 16, 2024

path value for method parameters in issue

It is solved in this pull request:
#34

Content-assist for patternProperties

This raises the question about how we should handle pattern properties, and if we should introduce specific implementation for some of them. Some pattern properties are fine to be use as replacement strings, see below for example on path, some are not like for responses code, that uses regex strings.

screen shot 2015-12-04 at 17 49 04

refs issues

The refs issues are a bit different and involves two different cases:

  • The first is about resolving references to external json schema documents. The swagger schema references standard schemas from json-schema.org, and we should include those during generation of the content assist.
  • The second is about showing the user possible references that can be used as values for the keys $ref in the document being edited. This can be could primarily by proposing the user, elements present in the definitions object of the current document.

We should open different issues for those different cases.

from kaizen-openapi-editor.

ghillairet avatar ghillairet commented on June 16, 2024

Some fixes for the issues related to refs have been pushed in branch external-refs.

Content assist now provide proposals for references inside the document, that is only for elements defined in definitions

screen shot 2015-12-11 at 18 24 31

Content assist also provides more hints about types of elements, as it is now able to parse external schemas.

screen shot 2015-12-11 at 18 24 18

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on June 16, 2024

Tanya will extract these to separate issues.

from kaizen-openapi-editor.

tedepstein avatar tedepstein commented on June 16, 2024

@tfesenko , FYI, I just read through the comments here. The most important issues are already fixed.
"Content-assist for patternProperties" should be extracted to a separate issue. Not sure right now how we should handle that.

from kaizen-openapi-editor.

tfesenko avatar tfesenko commented on June 16, 2024

Extracted #70 Content-assist for patternProperties .
Closing this issue

from kaizen-openapi-editor.

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.