Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 updates docs to correctly describe shemas + schema.validate input + output types #200

Merged
merged 90 commits into from
Aug 15, 2023

Conversation

spacether
Copy link
Contributor

@spacether spacether commented Aug 7, 2023

v3 updates docs to correctly describe shemas + schema.validate input + output types

  • adds object input and output type documentation
  • adds array input and output type documentation
  • writes a md file for every schema defined in a json path
    • this is done so that if there is a ref to that schema, the ref has a place to link to
    • this applies to Query/Header/Cookie/PathParams that all have refs to misc schemas
  • organizes schema templates in folders
  • typing_extensions.TypedDict/get_origin/Literal -> typing.TypedDict/get_origin/Literal now that python 3.8 is used

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/python*.
    For Windows users, please run the script in Git BASH.

@spacether spacether changed the base branch from master to 3_0_0 August 7, 2023 23:46
@spacether spacether changed the title v3 updates request body and other docs v3 updates docs to correctly describe shemas + schema.validate input + output types Aug 10, 2023
@spacether spacether force-pushed the v3_updates_request_body_and_other_docs branch from bfc81b8 to 0cd16f3 Compare August 11, 2023 23:20
@spacether spacether merged commit cab7d09 into 3_0_0 Aug 15, 2023
3 checks passed
@spacether spacether deleted the v3_updates_request_body_and_other_docs branch August 15, 2023 21:17
spacether added a commit that referenced this pull request Aug 16, 2023
…+ output types (#200)

* Removes incorrect lingering suffixes on format functions

* Adds object input and ouput types in schema docs

* Adds anchor to XDictInput in schema type

* Adds output type anchor

* Adds separate object input and output types

* Adds invalid identifier note

* Adds schemas.Unset accessed type object optional properties output type

* Adds optional unset input type

* Adds unset return value for object additional property, adds note about get_additional_property_

* Writes items input and output types

* Adds Array model input type

* Adds array output type

* Changes Type Info to vaidate method

* Creates and uses md io template

* Adds index field to array schema docs

* Adds new and from_dict_ methods to docs

* Adds properties section

* Fixes getitem documentation

* Moves from_dict_ method later and adds self input

* Adds base class info to object output class

* Adds inputt type for object input class

* Adds array input type

* Adds array output type

* Fixes addprops
types

* Puts object output types in code blocks

* Adds object input and output type for anyType validate input

* For anyType output types, lists object and array output class links

* Fixes from_dict_ input and output types for anytype

* Changes array input type to use io template

* Removes properties from identiferPieces

* Adds shared array and object output type templates

* Uses output types for object properties

* Adds unset to io template

* Adds new and get_item docs for array output type

* Writes doc for each header schema

* Writes content schema docs

* Writes parameter schemas

* Writes doc for response header object schema

* Removes collection schema doc files for header/query/path/cookie params

* Updates schema ref info presentation

* Uses io template for object input docs

* Adds docRoot to to all payloads passed in to handlebars that render schema_docs with a partial

* Adds docRoot passing to all locations that produce schema_doc

* Removes inline schema locations

* Fixes ref types for object input values

* Adds module prefix to refed type if it is object or array

* Adds missing docRoot

* Labels schema types

* Moves templates into types folder

* Further type refactoring

* Adds more refactoring

* Removes helper prefixes from two templates

* Moves schema_io_type templates

* Moves more templates into types folder

* Moves 3 files into types

* Renames template because it is only used by schema doc

* Moves the last type template into the types folder

* Merges two templates

* Removes redundant template

* Consolidates validate method templates

* Consolidates schema_cls templates

* More schema template renaming

* Moves another template into schema_cls

* Reorganizes schema templates

* Fixes composed schema anchors in schema docs

* Adds refModule to schema class name for composed schemas in docs

* Uses schemadoc templates for composed schema docs, removes descr and notes

* Removes usages of complexTypePrefix

* Removes setting complexTypePrefix in java payloads

* Adds string enum literal to io and output types in docs

* Adds int literals to schema docs

* Adds bool literal

* Uses typing instead of typing_extensions because python v3.8 is used

* Updates ArrayInput items description

* Fixes docRoot values

* Fixes detection of self references in schema docs for output types

* Fixes io detection of elf references

* Removes unused imports

* Adds inline schema types ot operation docs

* Adds ref request body schema types

* Lists all possible content-types in operations

* Adds query params description using schema doc

* Updates header parameters

* Updates allowed content type listing

* Adds path parameter docs using schema docs

* Updates cookie param docs

* Changes response_cls name to ApiResponse

* Fixes response docs

* FIxes build errors and java errors

* Samples regen
@spacether spacether added this to the 3.0.0 milestone Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant