Skip to content

Commit 1cd9f96

Browse files
author
Anton Titkov
committed
Update wording for testEmitsComplexOpenAPIParsingError and testSchemaWarningsForwardedToGeneratorDiagnostics
1 parent 794df63 commit 1cd9f96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/OpenAPIGeneratorCoreTests/Parser/Test_YamsParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ final class Test_YamsParser: Test_Core {
124124
/foo.yaml: error: Found neither a $ref nor a PathItem in Document.paths['/system'].
125125
126126
PathItem could not be decoded because:
127-
Inconsistency encountered when parsing `Vendor Extension` for the **GET** endpoint under `/system`: Found at least one vendor extension property that does not begin with the required 'x-' prefix. Invalid properties: [ resonance ]..
127+
Problem encountered when parsing `Vendor Extension` for the **GET** endpoint under `/system`: Found at least one vendor extension property that does not begin with the required 'x-' prefix. Invalid properties: [ resonance ]..
128128
"""
129129
assertThrownError(try _test(yaml), expectedDiagnostic: expected)
130130
}

Tests/OpenAPIGeneratorCoreTests/Translator/TypesTranslator/Test_translateSchemas.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Test_translateSchemas: Test_Core {
3535
(
3636
schemaWithWarnings,
3737
[
38-
"warning: Schema warning: Inconsistency encountered when parsing `OpenAPI Schema`: Found schema attributes not consistent with the type specified: string. Specifically, attributes for these other types: [\"array\"]. [context: codingPath=, contextString=, subjectName=OpenAPI Schema]"
38+
"warning: Schema warning: Problem encountered when parsing `OpenAPI Schema`: Found schema attributes not consistent with the type specified: string. Specifically, attributes for these other types: [\"array\"]. [context: codingPath=, contextString=, subjectName=OpenAPI Schema]"
3939
]
4040
),
4141
]

0 commit comments

Comments
 (0)