Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

2.0.0 release #123

Merged
merged 59 commits into from
Apr 11, 2023
Merged

2.0.0 release #123

merged 59 commits into from
Apr 11, 2023

Conversation

spacether
Copy link
Contributor

@spacether spacether commented Jan 13, 2023

Releases version 2.0.0

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 30 commits January 2, 2023 12:14
* Restructures endpoint data, modules written for responses

* Endpoint docs improved, not done yet

* Updates header_params

* Updates path_parameters

* Updates cookie_params, updates x_params to say key + input type

* Samples updated

* Fixes DefaultCodegenTests
* Java and template updates for separate request body module

* Samples updated

* Samples regenerated
* Adds parameter template and code to write it

* Writes module for each parameter

* Removes prependFormOrBodyParameters

* Sample regenrated

* Samples regenerated

* Fixes readme example

* simplifies setting items and additional_properties var names

* Regenerates sample with fixed schema names

* Samples regenerated

* Fixes java docstirng typo

* Fixes JavaModelTest tests

* Fixes tests in JavaModelEnumTest

* FIxes tests in JavaClientCodegenTest

* FIxes tests in DefaultGeneratorTest

* FIxes tests in DefaultCodegenTest

* Adds HeaderParameterWithoutName to api_client

* Sample regenerated, responses are now modules

* Moves request body schemas to the root indentation level of the response modules

* Adds code to generate response header modules

* Updates fromParameter

* Sample updated, fixed bug where form param was not seen as body

* Samples regenerated

* Fixes java tests
* python client modelPackage updated

* Fixes links in model_doc template

* Samples updated and python client path methods updated

* Models sucessfully moved into components/schema in one sample

* Replaces model import with components.schema

* Fixes readme imports

* Fixes model doc links from endpoint docs

* Samples regenerated

* Fixes manual test model imports

* Samples regenerated, added init for test components

* Removes model models folders

* Removes lingering AbstractStep files, fixes its test

* Removes lingering bad model test
* Uses new fromProperty, passes sourceJsonPath

* Samples regenerated

* Adds toRefClass for python, updates toModelDocFilename for python

* Petstore regenerated, component doc filenames updated

* Self references updated

* Fixes readme links to models

* Fixes model doc links for self references

* Adds two self referenicng models

* Updates toModelImport to use refClass

* Updates discriminator and example code to handle complexType values in map

* Adds import generation back in

* Makes java variable

* Petstore regen, fixes contains check for period

* Uses complexClass in endpoint docs for inputs

* Fixes tests in PythonClinteTest

* FIxes more java tests

* Fixes $refs in ObjectModelWithRefProps

* Removes broken java defaultCodegen test

* Adds TestSelfReferencingObjectModel

* Adds TestSelfReferencingArrayModel

* Fixes some java tests

* Fixes remaining java tests

* Samples regenerated
…ter and CodegenResponse as implementors (#65)

* Changes IJsonSchemaValidationProperties to JsonSchema because that is the interface that it represents

Updates CodegenParameter, removes JsonSchema info

Further updates to fromParameter call sites

* Removes JsonSchema from CodegenParameter and fixes usages

* Samples regenerated

* Removes JosnSchema from CodegenResponse

* Adds isDefault back to CodegenResponse

* Fixes DefaultCodegen

* Fixes testRefModelValidationProperties

* Fixes 2 tests in JavaModelTest

* Removes n/a test from JavaClientCodegenTest

* Fixes remianing tests in DefaultCodegenTest

* Removes dateDefaultValueIsIsoDateTime
…#84)

* Updates templates so MetaOapg will always be present

* Samples regenerated

* Fixes two tests

* Adds type info to MetaOapg, fixes test

* Adds types info to all classes

* Uses cls.MetaOapg.types for type checking

* Fixes 10 tests in TestAnyTypeSchema

* Fixes 5 remaining tests

* Removes _types

* Samples regenerated

* Fixes java test

* Fixes test_pet
* Templates updated, path enum converted to typeddict

* Sample regenerated

* Template update

* Sample updated

* Samples regenerated
* Adds generics for mypy

* Adds generic to exception

* Removes api_response from ApiException

* Fixes tests

* Samples regenerated

* Fixes exceptions.ApiException reason, body, and headers
* Stores refModule in request bodies

Adds request_bodies generation in java

Response body files generated

Moves imports for request body and form params into the model instance

fromParameter update

Consolidates fromParameter imports

Fixes parameter imports

Samples updated

Sample regen _request_body changed to suffix

* Samples regenerated

* Adds imports from request_bodies

* Fixes request bodies and broken tests

* Adds broken code to generate request body docs

* Adds templates and code to generate request body docs

* Fixes complexTypePrefix

* Relative links updated in request_bodies

* Updates request body title headers

* Endpoint docs updated

* Fixes links to request body doc

* Fixes input signatures in java tests

* Fixes some java tests

* Fixes java test

* Fixes test

* Fixes java tests

* FIxes 2 java tests

* sample regen
* Moves path generation out of the python client into default layers

* Fixes java call sites

* petstore regenerated

* Removes paths with old names

* Removes old autogen tests

* Fixes deprecated method usage, removes unused imports

* Samples regenerated

* templates renamed

* Adds pathEndpointTemplateFiles and uses it

* Adds general code to generate path request bodies and parameters

* Adds pathEndpointResponseTemplateFiles + pathEndpointResponseHeaderTemplateFiles

* Further refactoring, adds pathEndpointTestTemplateFiles

* Finishes generateEndpoints refactor

* Petstore sample regenerated

* Adds java code to generate endpoint docs

* petstore regenerated, per endpoint docs exist

* api docs updated

* FIxes link to endpoint files

* Moves endpoind docs into the tags folder

* Creates and uses CodegenTag to store api module and classname info

* Endpoint docs generated in correct location, tag and tags used in templates

* Removes operationId prefix from endpoint_doc anchors in template

* Petstore regen

* Fixes anchor links, adds anchorContainsPeriod=true

* Updates links in endpoiint files

* Endpoint doc links updated

* Fixes API link

* Fixes api_doc links

* Fixes host and exception info in endpoint docs

* Updates readme endpoints

* Adds request bodies

* Samples regenerated

* Fixes docs dor request bodies, omitted when not present

* Fixes java tsts
* Fixes java tests

* Adds code to generate response modules

* Adds response component

* Refactor, eliminates response code, unused java props and methods removed

* Fixes java ref to vars that are gone, creates template

* Regen sample, fixes endpoint method type hints

* Endpoint doc template update

* Template typo fix

* Uses integers for status codes and wildcard keys, sample regen

* Sample regen

* Adds printing of response back in

* nulls response maps initially

* Fixes response body type hints in docs

* Fixes endpoint docs

* Fixes response code reference in endpoint docs

* Fixes endpoint test http code, fixes some java tests

* Adds component responses to readme

* Removes unused java code

* Uses refed responses if they exist

* Removes generation of responses when they are referenced

* deletes paths and regens it

* Template and java update

* Samples regenerated with doc links to component responses

* Samples regen to include component links

* Fixes link to component response

* Adds geenration component response inline headers

* Sammple updated to include component response with refed content schema

* Sample regen and test template tweaked

* Fixes component response anchors for headers and body

* Fixes schema links in component response

* Fixes imports for CodegenResponse

* Adds response with inline content and header definition

* Sample regenerated

* Readme links updated

* Simplifies doc link generation

* Fixes links

* Fixes module structure of component responses, adds init file

* Samples regenerated

* Fixes tests in DefaultCodegenTest

* Fixes java tests in JavaModelTest

* Disables failing test

* Fixes schema links in requestbody docs

* Samples regenerated

* Regen samples with better endpoint test spacing
* Validators made for all but 7 keywords

* Adds validate_required

* Fixes validator values and comparisons

* Adds validate_items

* Adds validate_properties

* Adds validate_additional_properties

* Updates schemas template file

* Adds JsonSchemaValidator as a base class to all MetaOapg

* More typo and bugfixes

* Embeds oneOf anyOf and allOf classes in subclesses like properties does

* Sample regenerated with composition class wrapper fix

* Fixes some validate tests

* Adds validate_one_of

* Adds anyOf validation

* Adds validate_all_of

* Fixes validate_additional_properties

* Speeds up Configuration property access

* Removes from_server info from ValidationMetadata

* Ensures that configuration is present in ValidationMetadata

* Fixes disabled_json_schema_keywords, updates configuration

* Fixes configuration test

* Fixes tests in test_any_type_schema

* Adds validate_not

* Fixes BinarySchema one_of definition

* Fixes int checking with no format

* Adds path_to_type dict

* Mfgs classes for unvalidated paths

* Fixes generation of bool and none classes on unvalidated paths

* Fixes more tests

* Fixes test_dict_validate

* Removes unest type checking

* Adds validate_discriminator

* Sample regen

* Fixes 3 tests

* Adds self handling for oneOf/anyOf/allOf validation, fixes last test

* Samples regenerated

* Fixes integer validation

* Removes Discriminable

* Removes ComposedBase + BinaryBase

* Removes Int32Base/Int64Base/Float32Base/Float64Base

* Adds int format for integers

* Removes EnumBase

* Replaces ComposedSchema with AnyTypeSchema, fixes two tests

* Fixes two tests, handles AnyType + InheritorOfAnyType + XSchema use case

* Adds template changes that allow nonCompliantUseDiscriminatorIfCompositionFails to work

* Sample regen

* Fixes test for nonCompliantUseDiscriminatorIfCompositionFails feature sample

* Samples regenerated

* Samples regenerate with UnsetAnyTypeSchema exclusion in cast_to_allowed..
* Adds CodegenHeader

* Updates fromParameter

* Moves setContent into fromParameter, simplifies fromParameter

* Refactors fromParameter property assignment into helper method

* Adds missing methods to generate header components

* Updates param and header code to set correct style, updated header template param name

* Adds OpenapiComponent interface

* Fixes request body component docs to use modulePath

* Uses modulePath in response docs

* Has model docs use modulePath

* Improves fromHeader usage

* Fixes iterating over response headers

* Refactors CodegenParameter toString, fixes header style

* Regenerate sample, refed headers should not be generated inline

* Adds refed headers in path response header and component response header

* Adds imports for refed headers

* Adds java code to generate header docs, CodegenResponse.responseHeaders renamed to headers

* CodegenOperation.bodyParam changed to requestBody

* Samples regenerated

* Header doc files generated

* Fixes link to component headers

* Removes header details when there is a ref link

* Fixes refed header links

* Corrects header doc link

* Fixes response component link to header in docs

* Samples regenerated

* Adds Int32JsonContentTypeHeader

* Fixes one doc link to the new header

* Fixes last remaining doc link to the header doc

* Samples regenerated

* Fixes Java tests
* Adds code to generate component parameters

* Generates first parameter component

* Correctly sets refModule and modulePath

* Regens samples

* Do not generate parameter py files whn there is a ref

* Removes form params and unneeded helper methods

* Fixes java tests

* Fixes parameter imports in endpoint definition

* Adds link to component parameter schema in docs

* Adds parameter content schema rendering in docs

* Adds 2 new parameter components

* Fixes header doc links to schemas

* Adsusts refs

* Samples regenerated
* Adds allOf anyOf oneOf not to codegenProp + Model

* Replaces all template usage of composedSchemas with allOf/anyOf/oneOf

* Removes CodegenComposedSchemas

* Removes usage of getComposedSchemas

* Removes getter and setter

* Removes more unused methods

* Removes dataFormat + datatypeWithEnum

* Removes dataTupe template usage

* Removes dataType

* Removes isModel

* Removes isPrimitiveType

* Further isPrimitiveType removal

* Removes defaultValueWithParam

* Removes containerType

* Removes jsonSchema

* Removes min + max

* Removes hasMoreNonReadOnly

* Removes isContainer

* Removes isFreeFormObject

* Removes isInnerEnum

* Removes mostInnerItems

* Removes isInherited

* Removes enumName

* Removes additionalPropertiesIsAnyType

* Adds spec version comment in JsonSchema.java

* Exports python code to defaultCodegen

* Removes uniqueItemsBoolean

* Removes updatePropertyForArray

* Renames getRequiredVarsMap to getRequiredProperties

* Adds properties + optionalProperties

* Switches some vars to properties

* Uses LinkedHashMap for property maps to preserve insertion order, uses optionalProperties in schema_doc.handlebars

* Removes hasVars

* Removes hasRequired

* Uses more properties and optionalProperties

* Partial update using new data sources

* getitem type hint tweaks

* Improves type hints

* Fixes composed property json paths

* Removes schemaIsFromAdditionalProperties from fromProperty

* Removes name from fromProperty

* Fixes tempate typo

* Removes required from fromProperty

* Removes required from fromProperty

* Removes vars + requiredVars and unusedmethods from DefaultCodegen

* Regenerates sample

* Tweaks required object property docs

* Generates docs for required properties with no defining schema, addProps unset

* Fixes new type hint definitions

* Renames composed schemas

* Fixes schema definition names for content schemas

* Adds CodegenKey

* Stops special handling of additionalProperties baseName

* Removes nameInCamelCase + nameInSnakeCase, uses CodegenKey in templates

* Fixes composed schema names

* Removes codegenProperty.baseName

* name.name -> name.getName, removes addPropsUnset template var

* Changes key on properties/requiredProperties/optionalProperties form String to CodegenKey

* Uses key info to prevent invalid names in required property type hints and new signatures

* Removes generateAliasAsModel

* Further removal of GenerateAliasAsModel

* Fixes 3 python tests

* Partial java test fixes

* Adds getKey, fixes more java tests

* Removes generate alias as model, updates more java tests

* Fixes more java tests

* Syntax errors in java tests reduced to 49

* Reduces java syntax errors down to 40

* Reduces java syntax errors down to 30

* Reduces java syntax errors down to 20

* Reduces java syntax errors down to 7

* Reduces java syntax errors down to 0

* Reduces java syntax errors down to 240

* Reduces java syntax errors down to 212

* Reduces java syntax errors down to 198

* Reduces java syntax errors down to 184

* Reduces java syntax errors down to 158

* Reduces java syntax errors down to 136

* Reduces java syntax errors down to 98

* Reduces java syntax errors down to 76

* Reduces java syntax errors down to 50

* Fixes all syntax errors

* Removes JavaClient codegentest

* Removes JavaInheritancetest

* Removes JavaModelEnumtest

* Fixes 2 tests

* Reduces test failure qty to 33

* Reduces test failure qty to 23

* Reduces test failure qty to 11

* Reduces test failure qty to 7

* Reduces test failure qty to 3

* Reduces test failure qty to 2

* Reduces test failure qty to 1

* Fixes all java tests

* Removes unused java client tests

* Samples regenerated

* Regenerates samples

* Samples regen again
* CodegenModel extends CodegenProperty

* Updates the fromModel signature

* Removes unused code, updates fromModel to use fromProperty

* fromModel now uses a fromProperty helper

* Removes parent and child properties

* Removes interfaces + interfaceModels

* Removes vars properties

* Removes mandatory properties

* Removes 5 unused properties

* Removes classFilename

* Removes model dataType

* Removes type variables from codegenProperty

* Switches className for name.getCamelCaseName

* Updates staticmethod and class names to follow python naming conventions

* Converts properties to Properties

* More fixes for property class name cases

* Adds more schema case fixes

* Fixes the last of the schema name reference issues

* Fixes python tests

* Removes model classname property usages

* Removes classname/classVarName/modelJson

* Some small needed java fixes

* Moves externalDocumentation into ocdegenProperty

* Shortens and improves CodegenParameter equals method

* Adds externalDocs interface to JsonSchema

* Moves discriminator into CodegenProperty

* Moves discriminator creation into fromProperty

* Moves imports into CodegenProperty

* Replaces CodegenModel with CodegenProperty

* CodegenProperty renamed to CodegenSchema

* Updates debugging info

* Removes unused java code

* Removes unused java code

* Fixes syntax errors in defaultcodegentests

* DefaultCodegenTest failures reduced to 3

* Fixes one test

* Fixes java tests

* Fixes DefaultGeneratorTest.testRefModelValidationProperties

* Fixes java tests

* Samples regenerated

* Samples regenerated with endpoint test fix
* Changes modulePath to componentModule

* Adds module prefix back into endpoint schema examples

* Uses correct property for Schema path analysis

* Fixes caching of schemas

* Adds package prefix back into model docs

* Adds package prefix back into component header docs

* Adds package prefix back into component parameter docs

* Adds package prefix back into component request body docs

* Adds package prefix back into component response docs

* Adds refModule back into refClass locations

* Fixes discriminator class values

* Fixes schema imports

* Fixes model imports in schemas init

* Moves getImports into defaultcodegen

* Removes code to fix imports

* Reduces test syntax errors down to 100

* Syntax errors reduced to 62

* Syntax errors reduced to 0 in defaultocegentest

* Fixes DefaultCodegenTests

* Samples regenerated

* Fixes autogen model tests, samples regenerated
* Removes ModelMap and ModelsMap java classes

* Sample regen

* Fixes model header template

* Adds spaces back into header template

* Adds component schema imports and readme listing back in

* Sorts schemas

* Sorts schemas

* Removes redundant import setting, imports are available in all CodegenX instances

* Fixes file imports

* Writes header schema files

* improves parameter imports

* Removes redundant header imports when schema is refed

* Adds parameter schema files

* Adds parameter schemas

* Writes response header schemas

* Updates generateSchema signature

* Refactors header generation into generateHeader

* Adds helper methods for header/parameter schema and schema jsonPath retrieval

* Uses generateParameter in path operations

* Refactors header schema generation into generateHeader

* Refactors component requestBody generation

* Generates requestBody schemas

* Fixes response header schema definitions

* Adds code to generate response body imports

* Generates response body schemas

* Removes inline schema definition in response modules

* Removes unneeded constants + methods

* Regens samples

* Removes unneeded imports

* Fixes response module names

* Samples regen

* Samples regen

* Samples regen, test fix

* Samples regen using getKey for schema filename

* Samples regen using getKey for schema filename

* Adds needed imports, sample regen

* Fixes header paramName

* Adds more missing imports

* Fixes header reference

* Fixes schema model names

* Renegerates schema tests

* Fixes header schema path

* Fixes schema $ref import in request bodies

* Fixes request body endpoint tests

* Fixes java test errors

* FIxes java tests

* Samples regen

* Samples regen

* removes incororect tests

* Handles _Not schema
* Adds CodegenRequestBody

* Java updates where header extends requestbody

* Java updates to use getters

* Removes comment

* Updates fromRequestBody java code

* Regenerates petstore using fixed fromRequestBody

* Removes unused java helper methods for fromRequestBody

* Removes unused java code

* Adds and uses toHeader, toRequestBody

* Uses setRefAndComponentModuleInfo in fromHeader

* Uses helper methods in fromParameter

* Improves code readability, dedents java code

* Removes hasHeaders from CodegenResponse, adds getName to OpenapiComponent interface

* Adds more methods to OpenapiComponent

* Uses setLocationInfo, getKey updated to use component type

* Stops using paramName in response headers

* Stops using parameterName for headers

* Adds request body doc generation back in, it fell out

* Switches back to baseName

* Removes all paramName

* Removes paramName and uses name.getSnakeCaseName

* Moves component types from soffuxes to module prefixes

* Samples regenerated

* Samples regenerated

* Fixes some java tests

* Fixes java test, sets schema example also

* Reverts version file
* Adds refClass to all components

* Updates requestBody templates to use name.getCamelCaseName and write out a class

* RequestBody converted to class, petstore sample regenerated

* Fixes python tests

* Uses response class in response modules

* Adds generic parameter to api_client.OpenApiResponse base class

* Adds spaces in response class property definitions

* Updates headers and parameters to write classes

* Petstore regnerated with param + header classses, endpoint not yet fixed

* Uses classes in parameters and headers

* Fixes header and prameter refClasses

* Fixes many python tests

* Fixes python tests

* Samples regenerated

* Removes java instance copy code and usage
* Uses datetime import, adds types templates

* Template and petstore update

* petstore regenerated

* Python tests fixed, samples regen

* FIxes java test
* from_openapi_data_oapg -> from_openapi_data_

* _verify_typed_dict_inputs_oapg -> _verify_typed_dict_inputs

* _get_host_oapg -> _get_host

* _{{operationId}}_oapg -> _{{operationId}}

* _raise_validation_error_message_oapg -> _raise_validation_error_message

* is_true_oapg -> is_true_

* is_false_oapg -> is_false_

* is_none_oapg -> is_none_

* as_date_oapg -> as_date_

* as_datetime_oapg -> as_datetime_

* as_decimal_oapg -> as_decimal_

* as_uuid_oapg -> as_uuid_

* as_float_oapg -> as_float_

* as_int_oapg -> as_int_

* _get_class_oapg -> _get_class

* get_item_oapg -> get_item_

* _validate_oapg -> _validate

* _process_schema_classes_oapg -> _process_schema_classes

* _get_new_instance_without_conversion_oapg -> _get_new_instance_without_conversion

* as_str_oapg -> as_str_

* _get_items_oapg -> _get_items

* _get_properties_oapg -> _get_properties

* Samples regenerated

* Readme update

* MetaOapg -> Schema_

* _configuration -> configuration_

* _arg -> arg_

* _args -> args_

* JsonSchema -> OpenApiSchema, OpenapiComponent -> OpenApiComponent
* Replaces references with new project location

* Samples regenerated

* FIxes python tests
* Adds src folder above package in java code

* Moves package code into the new src subfolder, petstore regenerated

* Removes setup.cfg

* setup.py changed to pyproject.toml

* Reverts python java file change

* Removes setup files, fixes installation instructions

* Regenerated samples

* Fixes java test
* petstore regen

* Sets response ref to CodegenResponse instance

* Endpoint test fix, petstore regen

* Updates codegenHeader

* codegenRequestBody ref update in java

* Fixes endpoint + endpoint docs fro request body, example still broken

* Fixes request body examples

* Fixes requiredVars

* Adds response_for_200 info back into endpoint docs

* Adds response_for_200 back into response header anchor links

* Fixes header component links in scomponent response

* Updates codegenParameter

* Templates updated to get ref parameters working

* Uses setLocationInfo in fromSchema

* Uses a constant and already calculated adProp for required props, reduces fromSchema calls

* Uses codegenSchemaCache.computeIfAbsent in fromSchema

* Removes unaliasing from fromSchema

* Petstore regen

* Adds JsonIgnore to fix debugging

* Sample regen

* Samples regenerated

* Points refs to component schemas, fixes java test

* Fixes java test

* Fixes testAlias

* Fixes 2 java tests

* Fixes testUnalias

* Fixes testNullableProperty

* Fixes testDeprecatedRef

* Fixes testRequestBodyContent

* Fixes testAdditionalPropertiesPresentInResponses

* Fixes testAdditionalPropertiesPresentInParameters

* Fixes testIsXPresence

* Fixes testResponseContentAndHeader

* Fixes DefaultGeneratorTests

* Fixes AbstractJavaCodegenExampleValuesTest

* Samples updated
…efClass/refModule (#118)

* Adds CodegenRefInfo

* Adds needed base classes

* Renames class to OpenApiLocation

* Adds getName and setName to OpenApiLocation

* Template usages of ref replaces with ref.getRef

* ref property changed to refInfo

* Fixes refInfo usages in Java

* Templates updated ref -> refInfo

* Fixes another refInfo java location

* Template updates, refModule -> refInfo.refModule

* Templates updated, refClass -> refInfo.refClass

* Deletes refModule + refClass properties, they are in refInfo

* Fixes other needed java locations

* Fixes java tests, only sets refInfo if ref not null, only set name if currentJsonPath not null

* Adds code to setComponentModule

* Fixes java test

* Samples regen

* Adds refInfo printing and equality

* Adds hash and equals methods to CodegenRefInfo

* Fixes log line when generating
@spacether spacether reopened this Mar 22, 2023
@spacether spacether closed this Mar 22, 2023
* Adds readme security section

* Adds security sample

* Adds files for python testing

* petstore regenerated to delete unused api path files

* Adds security section to the docs

* Generates root security requirements objects

* Generates security requirement objects

* Passes through and uses security_index

* Operation docs now show security code from root

* Renames auth_info to security_scheme_info

* Adds test_endpoint_call_lacks_security

* Adds test_endpoint_call_lacks_security, more code

* Adds test_endpoint_call_contains_security

* Fixes operation response type, remves typing union

* Improves multiple response and parameter imports in operation files

* Fixes petstore tests

* Adds tests of all securities in the endpoints, secuirty_index passed in

* Adds ServerIndexInfo to allow configuration of servers by path or operation

* Regnerates petstore, fixes petstore test

* Adds SecurityIndexInfo

* Adds security_index_info to allow users to set a default security index before making an api call

* Adds test_endpoint_call_contains_security_index1_from_endpoint_config

* Adds CI invocation

* Regenerates samples

* Sample regen with unit test fix
@spacether spacether reopened this Mar 29, 2023
@spacether spacether closed this Mar 29, 2023
* Adds migration guide hbs files

* Adds another line of txt

* Adds migration files

* Improves indentation

* Adds subheadings

* Updates Api Access By Tags and Paths Updated

* reason and action updated

* Updates 200 migration guide

* Adds new section to migration guide

* Samples generated
* Adds python type info to inline param schema docs

* Updates endpoint docs for param content schema input type

* Updates ref param endpoint docs

* Makes it clear that params are of type dict

* Adds hppt status prefix to code, mentions server_index_info

* Removes trailing comma from accessed type

* Fixes enum descriptions

* Fixes broken template references in api_configuration

* Include python types in property input types with ref classes

* Fixes input types for dict keys

* Adds missing comma

* Adds new type hints for ref properties

* Updates new sig for array models with ref items

* Adds body primitive types to endpoint inputs

* Adds missing commas

* Fixes endpoint doc links for inline request bodies

* Fixes endpoint docs inline request body types

* Adds request body type info when the request body is refed

* Endpoint reqest body docs adds type hints for ref request bodies

* Removes template _helper_operation_args_baseapi_wrapper

* Removes template _helper_operation_args_operationid_wrapper

* Removes _helper_operation_args_httpmethod_wrapper

* Uses jsonPathPiece.snakeCase for response module names in operation responses

* Adds getNonErrorResponses for the templates, removes unnecessare unions

* Fixes endpoint doc link to api

* Removes recordUsage

* Adds prefix to response bodies

* Removes includeSuffix

* Improved request body docs describing body

* Does not use union for response bodies if there is only one

* Endpoint description updated,            // TODO adjust this for 3.1.0

* Uses getContentSchemas in operation reuqest body type hints

* Reduces template indentation for request body

* operation request body type hints now on new lines

* Improves operation body type hints, make them newlined

* Updates getContentSchemas to return anyType schema early

* Fixes response body type hint

* Removes unneeded union from response body doc

* Improves endpoint docs for ref request body body types

* Improves endpoint request body doc type hints, eliminates redundant types

* Samples updated
* Adds todo

* Eliminates composed schema renaming warnings

* Regen with response module name fix

* Fixes response doc generation

* Replaces componentModule usages with jsonPathPiece.snakeCase

* Converts componentModule to boolean to reduce warning logging qty

* Only logs a name or reserved warning if the name is for a component

* Removes comment

* Adds and uses modelNameCache

* Removes multiple discriminator warning

* Fixes java tests

* sample regen
* Fixes pyproject.toml file

* Samples regen

* Reduces number of test fiels needed

* Sample regen

* Removes flake8
* Updates data types

* Schema features updated

* Adds missing data types to python docs

* Adds more DocumentationFeatures

* Updates security features

* Updates reserved words

* Adds components features

* Adds components features

* Updates global features

* Fixes java tests, global features updated

* Updates schema features

* Fixes instantiationTypes

* Removes importMapping

* Samples and docs regenerated

* Fixes python test
* Adds method info to operation docs, moves the docs

* Fixes endpoint doc links

* Updates readme endpoint links

* Updates endpoint url links

* Samples regen
@spacether spacether reopened this Apr 5, 2023
@spacether spacether closed this Apr 5, 2023
* Adds usage section

* Adds Json Schema Type Object section

* Adds todos

* Adds another invalid variable

* Adds details sections to readme

* Small readme improvements

* Samples updated

* Adds Schema default feature
* Adds type hints for path/query/cookie/header params in endpoint code samples

* Samples regen

* Simplifies makefiles
* Templates updated

* Regnerates samples

* Adds missing Schema_ additions in identifierPieces

* Samples regen

* Adds missing composed schema class names in new signature
@spacether spacether reopened this Apr 7, 2023
@spacether spacether closed this Apr 7, 2023
* Removes pyi files

* Removes isStub from templates
@spacether spacether reopened this Apr 7, 2023
@spacether spacether closed this Apr 7, 2023
@spacether spacether reopened this Apr 7, 2023
* Readme update, removes online module

* Removes other online references
* Adds generation of wildcard responses

* Uses wildcars responses in deserialization

* Uses ranged response dict

* Fixes endpoint test syntax error

* Fixes operation test init generation, removes unneeded response body union, adds test

* Adds OperationFeatures

* Fixes java test

* Updates docs

* Samples regenerated
* Adds redirection response deserialization as non-error

* Adds redirection response sample + doc feature

* Sample regen, test added
* Removes inlinemodelresolver

* Fixes 2 java tests

* Fixes testDateTimeFormParameterHasDefaultValue

* Fixes testHasRequiredInProperties

* Fixes testHasRequiredInResponses

* Fixes testHasVarsInParameter

* Fixes testHasVarsInProperty

* Fixes testHasVarsInResponse

* Fixes testNullableProperty

* Fixes testRequestBodyContent

* Fixes more defaultcodegen tests

* Fixes two tests in DefaultGeneratorTest

* Fixes test in ModelUtilsTest

* Samples regen, docs regen
@spacether spacether added this to the 2.0.0 milestone Apr 11, 2023
@spacether spacether changed the title 2.0.0 release [wip] 2.0.0 release Apr 11, 2023
@spacether spacether merged commit 39cd61b into master Apr 11, 2023
@spacether spacether deleted the 2_0_0 branch May 9, 2023 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant