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

merge the 3_0_0 branch into master #202

Merged
merged 28 commits into from
Aug 16, 2023
Merged

merge the 3_0_0 branch into master #202

merged 28 commits into from
Aug 16, 2023

Conversation

spacether
Copy link
Contributor

merge the 3_0_0 branch to the master branch in preparation for the v 3.0.0 release

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 and others added 28 commits June 7, 2023 22:22
* Removes get_item_

* Samples and docs updated

* Fixes python tests
* Removes overrides from api classes

* Fixes type hint for operation methods, reduced 2x duplication

* Samples updated

* Sample regen
* Converts PrefixSeparatorIterator, Api, and Encoding into dataclasses

* ApiClient converted to dataclass

* Removes __call_api

* Removes unneeded type imports from header

* Removes unneeded imports from headers

* Removes unneeded imports in responses when they have no content or headers

* Removes unneeded header imports

* Removes pyi files

* Removes functools import

* Stops generating new for anytype schemas

* Samples regenerated

* Fixes this_package security tests
* petstore regen

* removes init template

* Adds parameters type hint

* Centralizes path and query param serialization

* Removes type hint for param tuples

* Simplifies used_path definition

* Adds path + query params inputs

* Adds _get_headers

* SImplifies header assignment

* Adds _get_field_and_body

* Adds _verify_response_status

* Removes unused imports

* Removes unused import

* Updates method name

* Samples regenerated
* Adds typing_imports

* Adds typing_imports for header and parameter

* Updates request body imports

* Adds response_imports

* Adds schema_imports

* Adds security_scheme_imports

* Adds server imports

* Adds operation_imports

* typing_imports -> header_imports

* Sample regen
* Adds generic type T

* Fixes broken python test

* Fixes for vscode basic type checking

* Adds new instacne casting

* Sets ValidationMetadata new type

* Makes ValidationMetadata a dataclass, fixes type issues in _process_schema_classes

* Fixes XBase self type errors

* Makes two methods static

* Fixes IntBase as_int type error

* Fixes type error in NumberBase

* Adds needed typing.cast calls in new methods and get_new_class fn

* Fixes exponent type error

* Fixes type errors in _get_new_instance_without_conversion

* Fixes typ error in FileIO new

* Fixes type error in BytesSchema

* Fixes another type error

* Adds type ignore for _GenericAlias check and origin access

* Removes _takes_ascii usage

* Fixes septype error

* Adds __parse_isotime type fix

* Fixes more date/datetime parsing errors

* Adds missing return types

* Changes UnsetAnyType back to AnyType

* Fixes AnyType init signature

* Writes new method for all composed or anytype classes

* Removes quote from refclass definitions

* Removes a type ignore comment

* Sample regen

* Adds response body generic type to ApiResponse classes

* Refactors response content template

* Adds response content type hint

* Fixes response header passing for deserialization

* Moves content schema helper

* Adds header and parameter content type type hint

* Adds missing imports

* Adds schema types for parameters and headers

* Samples updated

* Removes frozendict base class from ValidationMetadata

* Removes __origin__ usage

* Samples regenerated

* Fixes python test
* Fixes errors in server.py

* Fixes some errors in server py files

* Fixes schema_config type error

* Fixes errors in api_configuration

* Adds type ignoring for enum values, schemas fixed

* Fixes python tests

* Moves ApiException back into the exceptions module

* Fixes timeout type and rest client response type

* Adds int input back into timeout, fixes type errors in rest.py

* Fixes decimal exponent access

* Parameter content storage updated to tuple so code can see length 1

* Uses content tuple in serialize methods

* Adds __HeaderParameterBase to fix type error

* Updates urllib3.HTTPResponse -> urllib3_response.BaseHTTPResponse

* Adds _SERIALIZE_TYPES

* Fixes explode type error

* Fixes urllib3 response type + header and parameter schema references

* Fixes response type, fixes api_response header type

* Fixes 2 type errors

* Adds assertion

* Adds assertion

* Adds from_tuples method and needed types

* Fixes return type of __serialize_application_octet_stream

* Fixes __serialize_json

* Fixes __serialize_text_plain

* Fixes __serialize_application_x_www_form_data

* Fixes type error

* Fixes __serialize_multipart_form_data

* Fixes FieldValue types

* Fixes uer agent type error

* Fixes another type error

* Fixes type error

* Fixes type errors in security_schemes

* Fixes errors in two tests

* Fixes more type errors

* Fixes error in get_server_url invocation

* Fixes parameter and header serialization/deserialization

* Fixes content references

* Fixes parameter tests

* Fixes last python test errors

* Samples regen
* Fixes SerializedRequestBody['fields'] type

* Updates ApiCLient fields type

* Fixes fields type, moves RequestField into rest, fixes _get_headers

* Fixes _get_used_path

* Updates x_params to default to None

* When x_params are required, none is not an allowed value

* Moves required x_params earlier than optional ones

* tweaks skip_deserilization

* Adds new template for required variables

* Updated templates

* Simplifies operation overloads

* Reorders required and optional parameters

* Writes content_type on one line if there is only one

* Adds generic types to request bodies

* Adds generic types to request bodies

* Fixes test_fake_api errors

* Fixes inputs to RequestField

* FIxes new signature for arays, adds newlines

* Updates required properties to use newlines

* Adds newlines to new optional properties

* Uses newlines in additionalProperties new signature

* Moves array with usages higher

* Adds new arry ref generic types

* Adds array generics in new

* Input arg in new for more than one type uses newline

* Adds newline to new anytype types

* Adds parameterization to reuired ref properties in schema new

* Adds required prop generic types when from properties

* Adds required prop from additional prop generic types

* Adds helper for new property type hints

* Adds AnyTypeSchema parameterization

* Adds new ref generic helper

* Adds new optional property ref generic types

* Adds kwarg generics when set

* Changes new list/tuple input into sequence

* Adds newlines to kwargs in new signature

* Adds typing.Sequence for ListSchema inputs

* Tweaks operation type hint, sets ApiResponseWithoutDeserialization body + headers always as unset

* Regenerates samples
* Writes nested schemas earlier and uses them later

* Refactors order CodegenSchema properties are set in to match the order in getSchemas

* Adjusts ref input to setSchemaLocationInfo

* Tweak improves schema template

* Adds properties classes

* Replaces properties with field

* Uses Schema_()

* Uses dataclass properties

* Adds missing type info

* Updates all_of

* Adds any_of, all_of tuples

* Fixes types definition

* Fixed test_any_type_schema tests

* Fixes dataclass type setting issues

* Fixes simple schema format type

* Adds and uses PatternInfo for pattern schema info, validate_regex changed to validate_pattern

* Fixes not constraint tests

* Adds tuple_to_instance

* Writes out allOf/anyOf/oneOf types

* Updates classproperty decorator

* Adds enum return types

* Fixes type errors in schemas.py

* Adds schema singleton metaclass

* Replaces CodegenServer variables with object schema containing variables in properties

* Generates server variables as an object schema to keep all schemas at the root depth

* Fixes new signatures in servers schemas

* Simplifies Server variables definition

* Uses schema default for server variables

* Adds required vars in server definition

* Fixes classproperty and SchemaBase classes

* Fixes broken configuration tests

* Fixes server docs

* Adds isInlineDefinition

* Adds allOf/anyOf/oneOf/properties jsonPathPiece

* Uses jsonPathPiece in properties/allOf/anyOf/oneOf

* Fixes properties typeddict name

* Templates updated to write allOf/anyOf/oneOf/properties earlier if possible

* generates properties/allOf/anyOf/oneOf before class if possible

* Adds and uses schemas.INPUT_TYPES_ALL_INCL_SCHEMA

* Adds another usage of schemas.INPUT_TYPES_ALL_INCL_SCHEMA

* Changes SchemaBase to SingletonMeta

* Only calculates allSchemas once

* Reduces iteration through allSchemas from 2x to 1x

* Removes some getKey invocations

* Consolidates more getKey usages

* Deletes getKey with one input

* Adds comment

* Updates the definition of required properties, reduces the number of calls to getKey

* Updates getKey to use sourceJsonPath

* Adds class name generation that includes numbered suffixes when needed

* Uses pre order traversal for naming schema classes

* Fixes oneOf/anyOf/allOf type aliases

* Adds and uses schemas.INPUT_BASE_TYPES

* Adds string representation of CodegenKey

* Fixes java tests

* Samples regenerated

* Samples regenerated
* Adds section for required property type writing

* Adds required property classes

* Adds template adjustment for optional properties

* Adds template to write optional properties typeddict

* Successfully generates required and optional typeddicts

* Writes DictInput class to store required and optional input properties

* Changes new dict inptut type for arg_ and changes args_* to arg_

* Update new signature

* Removes unsets from optional properties, allows self in when optionalandreqproperties exist

* Typeddicts only generated when addProps is false

* Tweaks when reqanoptprops are generated

* Adds types to dictchema input

* Adds many use cases object inputs

* Adds req property mapping writing when addprops set

* Adds last required object type definition

* Fixes allAreInline for DictInput

* Adds optional properties type hint when addProps unset

* Adds and uses new partial

* Adds mapping type for required + opt + addProps

* Writes all property input mapping types

* Updates new signature to use DictInput for all object use cases

* Updates 3 test files

* Fixes more python tests

* Fixes manual tests

* Fixes python tests

* Converts example properties into example keys, fixes schema naming bug

* Adds braces aroudn object input

* Fixes example addProp key

* arg_ -> arg

* Schema input configuration_ -> configuration

* Removes 'from_openapi_data_'

* Fixes java tests

* Samples regenerated

* Unit test sample updated

* Fixes bug with allof/anyOf/oneOf type names

* Fixes python non compliant discriminator test
* Adds allTypes method in CodegenSchema

* Adds and uses new args template

* Updates new to use overloads when there are 2 or more types

* Adds new overloads when type is unset

* Fixes AnyType type hint for array items

* Samples regenerated
* Schema mixnins and base classes removed, validate added, output classes written for dict + tuple types

* Updates passed types in api_client and api_response

* Does not run validation twice for unstances of ouput clas for object and array

* Adds tests that verify that array and object validations are not run twice

* Fixes schema ouput class instantiation to use super new

* Renames two new templates to validate

* Renames two last new templates to _helper_prefix_ref_property_value_type + _helper_prefix_property_value_type

* Removes two unused templates

* Adds new method to array output class

* Adds new method to object output classes

* Adds test_dict_validate_using_output_class

* Adds test_list_validate_using_output_class

* Replaces immutabledict.immutabledict with schemas.immutabledict

* Removes unneeded init methods for dict output classes

* Removes unneeded immutabledict imports

* Fixes operation code samples in docs

* Silences schema not found warnings

* Adds requestBodySchemas to codegenOperation

* Updates RequestBodySchemas jsonPathPiece names

* Adds request body schema imports

* Shortens request body schema imports in operation.py

* Reverts content schema imports to be direct

* Fixes response ApiRespinse body definition

* Removes content and content type init imports

* Fixes testResponseWithNoSchemaInHeaders

* Fixes bug in detecting param required that broke two java tests

* Samples regenerated

* Fixes test of noncomplintdisc sample

* Fixes some tests

* Fixes path test validate typo

* Allows int or float into int schemas because values like 1.0 need to be accepted

* Adds Bool class and uses it during validation only

* Fixes the last of the unit test sample tests

* Samples updated

* Fixes two python tests

* Fixes last broken test in petstore
* Fixes java warnings

* Adds exception throw if enum values types are not allowed

* Adds and uses enumInfo

* Adds typeToValues enumInfo

* Addsstring literal output for single schema validate with enums

* Adds validate method writing for simple schema classes with enums

* Adds string and int enum type hints to return type of validate

* Adds string literal output type for single type, per literal input string

* Removes are type in validate for enum classes of type int, str, bool

* Fixes overload signatures for int/bool/str with enums

* Adds bol and int enum to object output properties

* object properties of type string with enum now have literal output types

* Adds _helper_validate_str_overload template

* Uses string overload template for multiple types

* Adds and uses bool overload template

* Adds and uses int validate overload template

* Handles int enum value for number use case, java tests fixed, samples regen
* Adds lib for types

* Fixes type errors in format.py

* Adds query_params_suffix to fix type error

* Fixes unset type

* Fixes type errors in schema_configuration

* Adds needed type info in validation.py

* Fixes more type errors in validation.py

* Adds U+T binding to fix type errors

* Improves return type of _get_new_instance_without_conversion

* Changes some typing.Type to type

* Adds validate_base_ in Schema

* Uses Schema.validate_base in api_client

* Removes clashing validate overloads from schemas classes

* Adds more missing types in schema.py

* Adds needed type hint

* Fixes some api_client types

* Fixes type error in update_params_for_auth

* Fixes type errors with vars write_file and new_file

* FIxes type error with serialize methods for header classes

* Fixes type error with None detection

* Type error another none fix

* Fixes type error by using literal for key_prefix in get_security_requirement_object

* Fixes 2 type errors by using literals in get_server_url

* Adds another validate_base signature to fix type errors in dictschema validate invocations

* Improves type hints for DictSchema

* Fixes type error with tuple detection

* Fixes broken python tests by having composed dict schemas use the Schema base class

* Eliminates incompatible sequence overloads

* Fixes 1 type error

* Fixes another type error

* Fixes tuple type error

* Fixes type error for path_to_schemas

* Updates path_to_schemas to store one schema

* Adds _instances type

* Fixes more type errors

* Fixes another type error

* Removes unneeded overload

* Detects and handles addProps=False and only one property

* Removes one sequence usage in template

* Removes another sequence usage

* Relaces last sequence in templates

* Fixes type errors by fixing get_security_requirement_object literal input

* Adds exception raising for statuses in operation handling code, reduces type errors

* Fixes assertion error, adds storage of error status codes for operation

* Adds error status codes to python

* Fixes operation return type

* Fixes get_server_url invocation, adds literals

* Renames all ApiResponse classes to ApiResponse, uses them in operation response

* Fixes type of headers_schema

* Removes dataclass from OpenApiResponse

* Removes unneeded dataclasses from OpenApiResponse and classes it uses

* Fixes skip_deserialization overload

* Prevents parameter collisions

* Adds array output class tuple generic type

* Removes typeddict from responses

* Adds missing elipses for tuple output type

* Adds validate_base sequence back in

* Removes getitem from list schemas

* Removes typeddict from header classes

* Changes order to int float

* Do not generate validate with number schema + enum

* Controls when composed schema validate methods are written, fixes type errors

* Adds type(None) to types definition, fixes type errors

* Turns off getitem, adds optional props

* Writes property methods

* Changes additional_properties to get_additional_property

* Adds get_property method implementation

* Changes template mode to get_property

* Changes property to overloads

* Has overloads use elipses

* Handles the case where there is one required or optional property

* Adds get_additional_property casting

* Only cast individual property outputs

* Ignores pyright reportWildcardImportFromLibrary

* Fixes array self ref type hint

* Makes T param bound to sequences, fixes type errors

* Adds required and optional keys

* Adds unset return for optional property values when there is only one property

* Changes name variable to key

* Removes unused templates

* Adds required property returns in get_property

* Fixes get_property implementation

* Improves get_property implementation

* Changes method name to get_additional_property_

* Adds @Property back

* Convers ref properties back into getters

* Converts get_property back into get_x methods

* Fixes python tests

* Adds unset returning in get_additional_property_

* Adds unset output for many cases

* Adds unset types on all except for array and object models

* Adds array unset return value

* Adds unset types for optional map

* Writes properties with unmodifed names, only writes them if they are valid

* Fixes python tests

* Adds mypy to petstore test

* Fixes type error

* FIxes last mypy errors

* Adds py.typed, improves server imports

* Adds __all__ definitions

* Fixes unset type setting on optional returns

* Fixes additiona prperties return type

* Adds unset case for binary output

* Fixes validate return types

* Adds mapValueSchema

* Refines types of SchemaDict values, supresses mypy response body type error

* Adds get_response method in OpenApiResponse classes

* Fixes java test

* Samples regenerated

* Fixes unit test sample, samples regenerated
* Adds int and str enum literal outputs

* Adds enum literal outputs when possible
…ction (#189)

* Merges core into generator

* Refactors codegen module

* More refactoring

* Renames Generator as GeneratorRunner, CodegenConfig renamed to Generator

* Removes common subpackage

* Reverts validation public changes

* Moves java python client test file

* Moves meta into generators and renames it generatormetadata

* Removes example module

* Renames codegenerator to generatorrunner

* Moves models into generators and renames to openapimodels

* Moves ignore int generator, removes unneeded classes for python generator

* Moves ignore moduel into generatorrunner

* validation module refactored to move external imports to its root level

* Moves java test file

* Removes cli module

* Refactors cli into clicommands module

* Collapses cli module into remaining module

* Updates dockerfile

* Removes broken links from pom, removes qos library, increase slf4j version

* Removes logToStderr

* Removes unused imports

* Fixes arch tests

* Removes sonatype from pom

* Removes logback xml exclusion

* Fixes groupId and package info

* Fixes mainClass definition

* Adds shade plugin, fixes jar running

* Fixes version info in docker

* Removes volume

* Adds multi stage docker image

* Reduces image size further

* Gets checkstyle working

* Removes scripts modules and website

* Removes website references

* Moves circleci parallel file into .circleci folder

* turns filtering off, adds pom comment for a versin upgrade

* Removes CI folder

* Changes suffix from project back to cli

* Removes many module and languages references

* Ensure up to date run

* Turns on filtering for docker verison command

* Actually fixes resource filtering
* Enc file removed

* Removes gitpod file

* Removes mac jenv java-version file

* Removes visual studio code workspace file

* Removes shippable file

* Removes vagrant

* Removes maven binary and files

* Adds spotbugs back in

* Moved docker entrypoint file

* Moves docker-entrypoint

* Updates readme, moves run_in_docker to bin

* Fixes path in new.sh options creation

* Adjusts new.sh command contents to point to right paths

* Moves new.sh to bin/new_generator.sh

* Fixes filename

* Adds missing optionin options provider test

* Moves code of conduct into docs

* Moves constributing md file into docs

* Fixes python java tests, refactors template engine setting

* Fixes java test

* Fixes PR template

* Excludes venv in java test resources, turns sys out println into logger info

* Fixes testResource exclusion
* Requires java 11

* Fixes git commit id version which rev rolls jgit

* Removes java setting

* Switches to latest 2004 ubuntu image in circleci

* Updates github actions, adds maven-javadoc-plugin

* Reverts ubuntu image back
* Updates python version to >= 3.8

* Updates python version to 3.8 in the samples

* Updates docs

* Updates gitlab ci template

* Runs ensure up to date

* Samples regenerated
* Renames some folders, removes some test resources

* Converts missing v2 specs to v3 specs to fix 2 java tests

* Updates readme links

* Updates gitignore

* Fixes 2 java tests

* Fixes more java tests, removes more unused samples

* Fixes java test
…typing (#195)

* Generates separate file for pathparameters

* Adds x_parameters files

* Fixes typo

* Passes body_info into _get_fields_and_body

* Adds RequestBodyInfo ref linking

* Fixes body types in BodyInfoForX

* Fixes one python test

* Fixes one test

* Fixes another test

* Fixes test_body_with_query_params

* Fixes test_composed_one_of_different_types

* Fixes test_inline_composition

* Fixes test_json_patch

* Fixes test_json_with_charset

* Fixes test_mammal, test_missing_or_unset_required_body

* Fixes two tests

* Fixes two tests

* Fixes two tests

* Fixes two tests

* Fixes last python test

* Allows body_info to be None

* Adds request_body imports for endpoint code sample

* Adds body_info to endpoint docs

* Stops generating requestbodyinfo schemas for refed schemas

* Dereferences request body schemas

* Improves refModuleAlias values, prevents collisions based on usages

* Samples regenerated

* Samples actually regenerated

* Fixes test for the nonCOmpliantDiscriminator sample

* Fixes unit tests

* Runs ensure up to date

* Adds content type back in

* Adds content type overload condition branch

* Adds per content type operation overloads

* Removes unused getContentTypeToOperation, adds requestBodySchema

* Adds and sets requestBodySchema in CodegenOperation

* Uses a linkedhashmap to store properties before making requestBodySchema

* Uses requestBodySchema.properties to define type hints for operation fn implementation signature

* Adds request body schema imports at the top of the operation file

* Adds body type hints for operation

* Switches code back to using body + content_type

* FIxes two tests

* Runs black on file, fixes three tests

* Fixes 3 tests

* Fixes 3 more tests

* Updates operation variable names

* Fixes body schema input type to use refModuleAlias, samples regen

* FIxes unitt est specs

* Updates templates to remove RequestBodyInfo

* Samples regenerated

* Updates operation to directly import query cookie header path param schema classes

* Sets skip_validation to True in _get_used_path

* FIxes mypy type errors, improves request body typing

* Samples regen

* Fixes typo

* Removes unused doc import
* Uses 3.0.0 version of immutabledict

* Samples regen

* Fixes some types
* Adds from_dict_ method

* Adds immutabledict back in

* Adds types for required and optional properties

* Uses new io_type template for required and optional properties

* Adds newlines to boolean input types

* Adds newlines to binary and none

* Adds newline for literal values

* Adds newline for optional str

* Adds newlines for number and integer inputs

* Adds remaining io newlines

* Adds input types to anyType input

* Adds map with no props types

* Adds object input types

* Adds tuple types when there is not arrayOutputJsonPathPiece

* Adds array input types

* Adds arg casting when addProps is false

* Adds casting to object model input in new method

* Adds new types for kwargs

* Makes arg_ dict type permissive

* Adds _arg dict type in new

* Replaces _helper_property_value_type with _helper_schema_io_type in object_input_type

* Replaces many _helper_property_value_type usages

* Uses schema_io for optional property definition

* Updates required properties typeddict to use schema_io template

* Adjusts definition of array model type to use schema_io template

* Removes unused templates

* Fixes array model self reference detection

* Fixes mypy errors by making default literals into literals

* Adjusts comment line for empty map output class

* Fixes mypy errors by moving new before properties

* Requires that required arguments are named and not positional

* Adds date/datetime/uuid inputs when those formats are specified

* Removes reference to deleted input schema template

* Adds io. types for binary input

* Samples regen

* Changes node4 image
* Changes nodeNo to nodeId

* Replaces node3 with node4

* Updates circleci cleanup fn

* Changes nodeId to jobId

* FIxes parallel.sh

* Renames job3

* Fixes lingering ref to node3

* Updates job1 name

* Removes other unused job

* Removes unnecesary docker petstore server in circleci
* Removes trailing underscores format functions

* Samples regenerated
…+ 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
* petstore regen

* Updates project readme

* Fixes relative links

* Readme tweaks

* Adds migration section on format fns

* Samples regen
@spacether spacether changed the title 3 0 0 merge the 3_0_0 branch into master Aug 16, 2023
@spacether spacether added this to the 3.0.0 milestone Aug 16, 2023
@spacether spacether merged commit 4ddd370 into master Aug 16, 2023
3 checks passed
@spacether spacether deleted the 3_0_0 branch August 16, 2023 16:55
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