-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Rauh
committed
May 4, 2023
1 parent
357297e
commit e725ee5
Showing
6 changed files
with
188 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* MassBank3 API | ||
* | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* API version: 3.0 | ||
* Generated by: OpenAPI Generator (https://openapi-generator.tech) | ||
*/ | ||
|
||
package mb3server | ||
|
||
type StringCountInner struct { | ||
Value string `json:"value,omitempty"` | ||
|
||
Count int32 `json:"count,omitempty"` | ||
} | ||
|
||
// AssertStringCountInnerRequired checks if the required fields are not zero-ed | ||
func AssertStringCountInnerRequired(obj StringCountInner) error { | ||
return nil | ||
} | ||
|
||
// AssertRecurseStringCountInnerRequired recursively checks if required fields are not zero-ed in a nested slice. | ||
// Accepts only nested slice of StringCountInner (e.g. [][]StringCountInner), otherwise ErrTypeAssertionError is thrown. | ||
func AssertRecurseStringCountInnerRequired(objSlice interface{}) error { | ||
return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error { | ||
aStringCountInner, ok := obj.(StringCountInner) | ||
if !ok { | ||
return ErrTypeAssertionError | ||
} | ||
return AssertStringCountInnerRequired(aStringCountInner) | ||
}) | ||
} |
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