|
|
|
@ -920,9 +920,6 @@ class OpenAPIBuilder implements Builder {
|
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
extraJsonSerializableValues: { |
|
|
|
|
'disallowUnrecognizedKeys': 'false', |
|
|
|
|
}, |
|
|
|
|
extraJsonKeyValues: { |
|
|
|
|
for (final headerName in response.headers!.keys) ...{ |
|
|
|
|
headerName.toLowerCase(): { |
|
|
|
@ -1453,7 +1450,6 @@ TypeResult resolveObject(
|
|
|
|
|
final State state, |
|
|
|
|
final String identifier, |
|
|
|
|
final Schema schema, { |
|
|
|
|
required final Map<String, String>? extraJsonSerializableValues, |
|
|
|
|
required final Map<String, Map<String, String>>? extraJsonKeyValues, |
|
|
|
|
}) { |
|
|
|
|
if (!state.resolvedTypes.contains('${state.prefix}$identifier')) { |
|
|
|
@ -1523,7 +1519,6 @@ TypeResult resolveObject(
|
|
|
|
|
state, |
|
|
|
|
'${identifier}_${_toDartName(propertyName, uppercaseFirstCharacter: true)}', |
|
|
|
|
propertySchema, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
b |
|
|
|
@ -1632,7 +1627,6 @@ TypeResult resolveType(
|
|
|
|
|
final State state, |
|
|
|
|
final String identifier, |
|
|
|
|
final Schema schema, { |
|
|
|
|
final Map<String, String>? extraJsonSerializableValues, |
|
|
|
|
final Map<String, Map<String, String>>? extraJsonKeyValues, |
|
|
|
|
final bool ignoreEnum = false, |
|
|
|
|
}) { |
|
|
|
@ -1647,7 +1641,6 @@ TypeResult resolveType(
|
|
|
|
|
state, |
|
|
|
|
name, |
|
|
|
|
spec.components!.schemas![name]!, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
); |
|
|
|
|
} else if (schema.ofs != null) { |
|
|
|
|
if (!state.resolvedTypes.contains('${state.prefix}$identifier')) { |
|
|
|
@ -1659,7 +1652,6 @@ TypeResult resolveType(
|
|
|
|
|
state, |
|
|
|
|
'$identifier${schema.ofs!.indexOf(s)}', |
|
|
|
|
s, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
.toList(); |
|
|
|
@ -1930,7 +1922,6 @@ TypeResult resolveType(
|
|
|
|
|
state, |
|
|
|
|
identifier, |
|
|
|
|
schema.items!, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
); |
|
|
|
|
result = TypeResultList( |
|
|
|
|
'BuiltList<${subResult.name}>', |
|
|
|
@ -1957,7 +1948,6 @@ TypeResult resolveType(
|
|
|
|
|
state, |
|
|
|
|
identifier, |
|
|
|
|
schema.additionalProperties!, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
); |
|
|
|
|
result = TypeResultMap( |
|
|
|
|
'BuiltMap<String, ${subResult.name}>', |
|
|
|
@ -1982,7 +1972,6 @@ TypeResult resolveType(
|
|
|
|
|
state, |
|
|
|
|
identifier, |
|
|
|
|
schema, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
extraJsonKeyValues: extraJsonKeyValues, |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
@ -2022,7 +2011,6 @@ TypeResult resolveType(
|
|
|
|
|
'$identifier${_toDartName(value.toString(), uppercaseFirstCharacter: true)}', |
|
|
|
|
schema, |
|
|
|
|
ignoreEnum: true, |
|
|
|
|
extraJsonSerializableValues: extraJsonSerializableValues, |
|
|
|
|
); |
|
|
|
|
b |
|
|
|
|
..name = _toDartName(value.toString()) |
|
|
|
|