Class TypeScriptFetchClientCodegen.ExtendedCodegenOperation
- java.lang.Object
-
- org.openapitools.codegen.CodegenOperation
-
- org.openapitools.codegen.languages.TypeScriptFetchClientCodegen.ExtendedCodegenOperation
-
- Enclosing class:
- TypeScriptFetchClientCodegen
public class TypeScriptFetchClientCodegen.ExtendedCodegenOperation extends CodegenOperation
-
-
Field Summary
Fields Modifier and Type Field Description booleancontentTypeMergedSet byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants.List<CodegenParameter>contentTypeMergedEnumParamsEvery enum parameter the merged request union references, across all the variants, deduplicated by the name of the type it declares.List<TypeScriptFetchClientCodegen.ContentTypeVariant>contentTypeRequestVariantsList<TypeScriptFetchClientCodegen.ContentTypeVariant>contentTypeResponseDispatchThe response variants ordered for an if / else if / else chain: the default one comes last.List<TypeScriptFetchClientCodegen.ContentTypeVariant>contentTypeResponseVariantsbooleanhasContentTypeRequestVariantsSet byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants.booleanhasContentTypeResponseVariantsSet byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants.-
Fields inherited from class org.openapitools.codegen.CodegenOperation
allParams, authMethods, baseName, bodyParam, bodyParams, callbacks, constantParams, consumes, cookieParams, defaultResponse, defaultReturnType, discriminator, examples, externalDocs, formParams, hasAuthMethods, hasConsumes, hasErrorResponseObject, hasOptionalParams, hasProduces, hasReference, hasVersionHeaders, hasVersionQueryParams, headerParams, httpMethod, implicitHeadersParams, imports, isArray, isCallbackRequest, isDeprecated, isMap, isMultipart, isResponseBinary, isResponseFile, isResponseOptional, isVoid, nickname, notes, notNullableParams, operationId, operationIdCamelCase, operationIdLowerCase, operationIdOriginal, operationIdSnakeCase, optionalParams, path, pathParams, prioritizedContentTypes, produces, queryParams, requestBodyExamples, requiredAndNotNullableParams, requiredParams, responseHeaders, responses, returnBaseType, returnContainer, returnFormat, returnProperty, returnSimpleType, returnType, returnTypeIsPrimitive, servers, subresourceOperation, summary, tags, unescapedNotes, uniqueItems, vendorExtensions
-
-
Constructor Summary
Constructors Constructor Description ExtendedCodegenOperation(CodegenOperation o)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()StringtoString()-
Methods inherited from class org.openapitools.codegen.CodegenOperation
contentTypeToOperation, getAllResponsesAreErrors, getExts, getHasBodyOrFormParams, getHasBodyParam, getHasCookieParams, getHasDefaultResponse, getHasExamples, getHasFormParams, getHasHeaderParams, getHasNonBodyParams, getHasNotNullableParams, getHasOnlyDefaultResponse, getHasOptionalBodyParam, getHasOptionalParams, getHasParams, getHasPathParams, getHasQueryParams, getHasQueryParamsOrAuth, getHasRequiredAndNotNullableParams, getHasRequiredParam, getHasRequiredParams, getHasResponseHeaders, getHasSingleParam, getHasVendorExtensions, isBodyAllowed, isRestful, isRestfulCreate, isRestfulDestroy, isRestfulIndex, isRestfulShow, isRestfulUpdate, producesTextPlain
-
-
-
-
Field Detail
-
contentTypeMerged
public boolean contentTypeMerged
Set byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants. Fields rather than vendor extensions: a mistyped `x-` key renders as nothing at all in a template, andCodegenOperation.hashCode()walks the extensions map, which these lists have no business being dragged through.
-
hasContentTypeRequestVariants
public boolean hasContentTypeRequestVariants
Set byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants. Fields rather than vendor extensions: a mistyped `x-` key renders as nothing at all in a template, andCodegenOperation.hashCode()walks the extensions map, which these lists have no business being dragged through.
-
hasContentTypeResponseVariants
public boolean hasContentTypeResponseVariants
Set byTypeScriptFetchClientCodegen.mergeContentTypeVariants(org.openapitools.codegen.model.OperationsMap)on an operation merged back from its content-type variants. Fields rather than vendor extensions: a mistyped `x-` key renders as nothing at all in a template, andCodegenOperation.hashCode()walks the extensions map, which these lists have no business being dragged through.
-
contentTypeRequestVariants
public List<TypeScriptFetchClientCodegen.ContentTypeVariant> contentTypeRequestVariants
-
contentTypeResponseVariants
public List<TypeScriptFetchClientCodegen.ContentTypeVariant> contentTypeResponseVariants
-
contentTypeResponseDispatch
public List<TypeScriptFetchClientCodegen.ContentTypeVariant> contentTypeResponseDispatch
The response variants ordered for an if / else if / else chain: the default one comes last.
-
contentTypeMergedEnumParams
public List<CodegenParameter> contentTypeMergedEnumParams
Every enum parameter the merged request union references, across all the variants, deduplicated by the name of the type it declares. The enum declaration block walks this rather than allParams, which only holds the surviving variant's parameters.
-
-
Constructor Detail
-
ExtendedCodegenOperation
public ExtendedCodegenOperation(CodegenOperation o)
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCodegenOperation
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCodegenOperation
-
toString
public String toString()
- Overrides:
toStringin classCodegenOperation
-
-