-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from gibahjoe/fix-issue-#110
fix: useEnumExtension in additional properties throws invalid type error
- Loading branch information
Showing
10 changed files
with
234 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
openapi-generator/test/specs/dio_alt_properties_test_config.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
library test_lib; | ||
|
||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart'; | ||
|
||
@Openapi( | ||
inputSpecFile: './openapi.test.yaml', | ||
inputSpec: InputSpec(path: './test/specs/openapi.test.yaml'), | ||
generatorName: Generator.dio, | ||
useNextGen: true, | ||
cachePath: './test/specs/output/cache.json', | ||
typeMappings: {'key': 'value'}, | ||
templateDirectory: 'template', | ||
alwaysRun: true, | ||
outputDirectory: './test/specs/output', | ||
runSourceGenOnOutput: true, | ||
apiPackage: 'test', | ||
skipSpecValidation: false, | ||
importMappings: {'package': 'test'}, | ||
reservedWordsMappings: {'const': 'final'}, | ||
additionalProperties: DioAltProperties( | ||
wrapper: Wrapper.fvm, | ||
useEnumExtension: true, | ||
pubAuthor: 'test author', | ||
nullSafe: true, | ||
nullSafeArrayDefault: true), | ||
inlineSchemaNameMappings: {'200resp': 'OkResp'}, | ||
overwriteExistingFiles: true, | ||
projectPubspecPath: './test/specs/dart_pubspec.test.yaml', | ||
) | ||
class DioAltPropertiesTestConfig {} |
29 changes: 29 additions & 0 deletions
29
openapi-generator/test/specs/dio_properties_test_config.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
library test_lib; | ||
|
||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart'; | ||
|
||
@Openapi( | ||
inputSpecFile: './openapi.test.yaml', | ||
inputSpec: InputSpec(path: './test/specs/openapi.test.yaml'), | ||
generatorName: Generator.dio, | ||
useNextGen: true, | ||
cachePath: './test/specs/output/cache.json', | ||
typeMappings: {'key': 'value'}, | ||
templateDirectory: 'template', | ||
alwaysRun: true, | ||
outputDirectory: './test/specs/output', | ||
runSourceGenOnOutput: true, | ||
apiPackage: 'test', | ||
skipSpecValidation: false, | ||
importMappings: {'package': 'test'}, | ||
reservedWordsMappings: {'const': 'final'}, | ||
additionalProperties: DioProperties( | ||
wrapper: Wrapper.fvm, | ||
useEnumExtension: true, | ||
pubAuthor: 'test author', | ||
nullableFields: true), | ||
inlineSchemaNameMappings: {'200resp': 'OkResp'}, | ||
overwriteExistingFiles: true, | ||
projectPubspecPath: './test/specs/dart_pubspec.test.yaml', | ||
) | ||
class DioPropertiesTestConfig {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters