Skip to content

Commit

Permalink
(fix): remove sdk language toggle for new unions (#3891)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Jun 20, 2024
1 parent f730e71 commit 34e37c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ export async function convertGeneratorsConfiguration({
}): Promise<GeneratorsConfiguration> {
const maybeTopLevelMetadata = getOutputMetadata(rawGeneratorsConfiguration.metadata);
const readme = rawGeneratorsConfiguration.readme;
const parsedApiConfiguration = await parseAPIConfiguration(rawGeneratorsConfiguration);
return {
absolutePathToConfiguration: absolutePathToGeneratorsConfiguration,
api: await parseAPIConfiguration(rawGeneratorsConfiguration),
api: parsedApiConfiguration,
rawConfiguration: rawGeneratorsConfiguration,
defaultGroup: rawGeneratorsConfiguration["default-group"],
groups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ export abstract class AbstractOpenAPIV3ParserContext implements SchemaParserCont
this.refOccurrences = getReferenceOccurrences(document);
this.DUMMY = this.getDummy();
this.shouldUseTitleAsName = shouldUseTitleAsName;
this.shouldUseUndiscriminatedUnionsWithLiterals =
shouldUseUndiscriminatedUnionsWithLiterals && sdkLanguage === generatorsYml.GenerationLanguage.PYTHON;
this.shouldUseUndiscriminatedUnionsWithLiterals = shouldUseUndiscriminatedUnionsWithLiterals;
}

public getNumberOfOccurrencesForRef(schema: OpenAPIV3.ReferenceObject): number {
Expand Down

0 comments on commit 34e37c1

Please sign in to comment.