mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Serve /devfile * Implement /devfile endpoints * Load/Save devfile from UI * Required metadata fields in the response * Add an Apply button on 1st tab * Fix: validate new devfile, not previous one * Add generated UI files to gitattributes file * Fix rebase
32 lines
1008 B
Go
Generated
32 lines
1008 B
Go
Generated
/*
|
|
* odo dev
|
|
*
|
|
* API interface for 'odo dev'
|
|
*
|
|
* API version: 0.1
|
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
*/
|
|
|
|
package openapi
|
|
|
|
type DevfileGet200Response struct {
|
|
Content string `json:"content,omitempty"`
|
|
}
|
|
|
|
// AssertDevfileGet200ResponseRequired checks if the required fields are not zero-ed
|
|
func AssertDevfileGet200ResponseRequired(obj DevfileGet200Response) error {
|
|
return nil
|
|
}
|
|
|
|
// AssertRecurseDevfileGet200ResponseRequired recursively checks if required fields are not zero-ed in a nested slice.
|
|
// Accepts only nested slice of DevfileGet200Response (e.g. [][]DevfileGet200Response), otherwise ErrTypeAssertionError is thrown.
|
|
func AssertRecurseDevfileGet200ResponseRequired(objSlice interface{}) error {
|
|
return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
|
|
aDevfileGet200Response, ok := obj.(DevfileGet200Response)
|
|
if !ok {
|
|
return ErrTypeAssertionError
|
|
}
|
|
return AssertDevfileGet200ResponseRequired(aDevfileGet200Response)
|
|
})
|
|
}
|