Skip to content

General Function Generator #3

Open

Description

@laszewsk
  • Develop a cms command and proper attributes
  • List here the codes form all students
  • (Prateek) Merge the code to a single code base
    has started this ... coordinate with each other
  • (Prateek) Develop pytets to see if the conversion works
    Somone needs to look at this and develop tests, you can do this right
    now under assumption it would work
    tests/test_function.py would be good

Design:

python function -> generator -> OpenAPI3 yaml

Features:

  • Design Document
  • (Jonathan) cms integration
  • (Jonathan) baseurl/directory addition
  • support lots of data types - Brian
  • support components and references - Brian
  • support lists - Brian
  • dict - Brian
  • class - Brian - @dataclass only at this time
  • Manual
  • Prateek - pytests
  • Prateek -dataclasses investigation
  • write file with function and dataclass, pass to cms openapi3 generate - Brian

Activity

  1. laszewsk commented on Feb 29, 2020

    @laszewsk
    MemberAuthor

    Design:

    python function -> generator -> OpenAPI3 yaml

    Features:

    • Design Document
    • support lots of data types
    • support lists
    • support typing of class tyes (advanced, possibly difficult)
    • Manual
    • pytests
  2. bkegerreis commented on Mar 1, 2020

    @bkegerreis
    Collaborator

    really not sure how to automatically define a class as a parameter since attributes can't be accessed until the class is instantiated. If we ever figure it out, it will look something like this:

    type: object
    properties:
      a:
        type: integer
      b:
        type: string
    

    Could instantiate a class with no arguments (or some defaults) and then access __annotations__

  3. bkegerreis commented on Mar 1, 2020

    @bkegerreis
    Collaborator

    added support for text/plain or generic application/json response content

  4. prateekazam commented on Mar 3, 2020

    @prateekazam
    Collaborator

    I am working on pytest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions