forked from loafle/openapi-generator-original
Add getters for private default Headers and authentications (#8509)
* add getters for default headermap and auths
* regenerate samples, make shebangs portable
* Revert making shebangs portable
This reverts commit ec60f60359.
Co-authored-by: nanashi0x74 <rian.lindenberger@mpq.se>
This commit is contained in:
@@ -49,6 +49,12 @@ class ApiClient {
|
||||
_defaultHeaderMap[key] = value;
|
||||
}
|
||||
|
||||
Map<String,String> get defaultHeaderMap => _defaultHeaderMap;
|
||||
/// returns an unmodifiable view of the authentications, since none should be added
|
||||
/// nor deleted
|
||||
Map<String, Authentication> get authentications =>
|
||||
Map.unmodififiable(_authentications);
|
||||
|
||||
dynamic deserialize(String json, String targetType, {bool growable}) {
|
||||
// Remove all spaces. Necessary for reg expressions as well.
|
||||
targetType = targetType.replaceAll(' ', '');
|
||||
|
||||
@@ -42,6 +42,12 @@ class ApiClient {
|
||||
_defaultHeaderMap[key] = value;
|
||||
}
|
||||
|
||||
Map<String,String> get defaultHeaderMap => _defaultHeaderMap;
|
||||
/// returns an unmodifiable view of the authentications, since none should be added
|
||||
/// nor deleted
|
||||
Map<String, Authentication> get authentications =>
|
||||
Map.unmodififiable(_authentications);
|
||||
|
||||
dynamic deserialize(String json, String targetType, {bool growable}) {
|
||||
// Remove all spaces. Necessary for reg expressions as well.
|
||||
targetType = targetType.replaceAll(' ', '');
|
||||
|
||||
@@ -42,6 +42,12 @@ class ApiClient {
|
||||
_defaultHeaderMap[key] = value;
|
||||
}
|
||||
|
||||
Map<String,String> get defaultHeaderMap => _defaultHeaderMap;
|
||||
/// returns an unmodifiable view of the authentications, since none should be added
|
||||
/// nor deleted
|
||||
Map<String, Authentication> get authentications =>
|
||||
Map.unmodififiable(_authentications);
|
||||
|
||||
dynamic deserialize(String json, String targetType, {bool growable}) {
|
||||
// Remove all spaces. Necessary for reg expressions as well.
|
||||
targetType = targetType.replaceAll(' ', '');
|
||||
|
||||
@@ -45,6 +45,12 @@ class ApiClient {
|
||||
_defaultHeaderMap[key] = value;
|
||||
}
|
||||
|
||||
Map<String,String> get defaultHeaderMap => _defaultHeaderMap;
|
||||
/// returns an unmodifiable view of the authentications, since none should be added
|
||||
/// nor deleted
|
||||
Map<String, Authentication> get authentications =>
|
||||
Map.unmodififiable(_authentications);
|
||||
|
||||
dynamic deserialize(String json, String targetType, {bool growable}) {
|
||||
// Remove all spaces. Necessary for reg expressions as well.
|
||||
targetType = targetType.replaceAll(' ', '');
|
||||
|
||||
Reference in New Issue
Block a user