Add route4me to the sponsor list (#19294)

* update samples

* add route4me to the sponsor list
This commit is contained in:
William Cheng 2024-08-05 13:07:56 +08:00 committed by GitHub
parent 8f1d59fb0a
commit 25936b4198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 89 additions and 48 deletions

View File

@ -71,7 +71,7 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
[<img src="https://openapi-generator.tech/img/companies/designli.jpg" width="128" height="128">](https://designli.co?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
[<img src="https://openapi-generator.tech/img/companies/itm.png" width="128" height="128">](https://opensource.muenchen.de?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
[<img src="https://openapi-generator.tech/img/companies/kong.png" width="128" height="128">](https://konghq.com/products/kong-konnect?utm_medium=referral&utm_source=github&utm_campaign=platform&utm_content=openapi-generator)
[<img src="https://openapi-generator.tech/img/companies/route4me.png" width="128" height="128">](https://route4me.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -198,7 +198,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -224,7 +224,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -250,7 +250,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -263,7 +263,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -238,7 +238,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -251,7 +251,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -264,7 +264,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -196,7 +196,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int32Range
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<int?> Int32RangeOption { get; private set; }
/// <summary>
@ -222,7 +222,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Negative
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeOption { get; private set; }
/// <summary>
@ -235,7 +235,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64NegativeExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64NegativeExclusiveOption { get; private set; }
/// <summary>
@ -248,7 +248,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64Positive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveOption { get; private set; }
/// <summary>
@ -261,7 +261,7 @@ namespace Org.OpenAPITools.Model
/// Used to track the state of Int64PositiveExclusive
/// </summary>
[JsonIgnore]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public Option<long?> Int64PositiveExclusiveOption { get; private set; }
/// <summary>

View File

@ -69,6 +69,7 @@ func (o *FilterTypeRange) SetType(v string) {
o.Type = v
}
// GetData returns the Data field value if set, zero value otherwise.
func (o *FilterTypeRange) GetData() []string {
if o == nil || IsNil(o.Data) {
@ -131,6 +132,11 @@ func (o *FilterTypeRange) UnmarshalJSON(data []byte) (err error) {
"type",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
defaultValueFuncMap := map[string]func() interface{} {
}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
@ -140,11 +146,23 @@ func (o *FilterTypeRange) UnmarshalJSON(data []byte) (err error) {
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
if value, exists := allProperties[requiredProperty]; !exists || value == ""{
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
if err != nil{
return err
}
}
varFilterTypeRange := _FilterTypeRange{}
err = json.Unmarshal(data, &varFilterTypeRange)

View File

@ -69,6 +69,7 @@ func (o *FilterTypeRegex) SetType(v string) {
o.Type = v
}
// GetRegex returns the Regex field value if set, zero value otherwise.
func (o *FilterTypeRegex) GetRegex() string {
if o == nil || IsNil(o.Regex) {
@ -131,6 +132,11 @@ func (o *FilterTypeRegex) UnmarshalJSON(data []byte) (err error) {
"type",
}
// defaultValueFuncMap captures the default values for required properties.
// These values are used when required properties are missing from the payload.
defaultValueFuncMap := map[string]func() interface{} {
}
var defaultValueApplied bool
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
@ -140,11 +146,23 @@ func (o *FilterTypeRegex) UnmarshalJSON(data []byte) (err error) {
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
if value, exists := allProperties[requiredProperty]; !exists || value == "" {
if _, ok := defaultValueFuncMap[requiredProperty]; ok {
allProperties[requiredProperty] = defaultValueFuncMap[requiredProperty]()
defaultValueApplied = true
}
}
if value, exists := allProperties[requiredProperty]; !exists || value == ""{
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
if defaultValueApplied {
data, err = json.Marshal(allProperties)
if err != nil{
return err
}
}
varFilterTypeRegex := _FilterTypeRegex{}
err = json.Unmarshal(data, &varFilterTypeRegex)

View File

@ -128,3 +128,8 @@
image: "img/companies/kong.png"
infoLink: "https://konghq.com/products/kong-konnect?utm_medium=referral&utm_source=github&utm_campaign=platform&utm_content=openapi-generator"
bronze: true
-
caption: "Route4Me"
image: "img/companies/route4me.png"
infoLink: "https://route4me.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship"
bronze: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB