Commit 29daf8e Jim Minter
committed
1 parent 9446c1b commit 29daf8e Copy full SHA for 29daf8e
File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
package api
2
2
3
3
// from https://github.com/openservicebrokerapi/servicebroker/blob/1d301105c66187b5aa2e061a1264ecf3cbc3d2a0/_spec.md
4
- // and https://github.com/avade/servicebroker/blob/9ef94ce96ca65bfc9ce482d5ea5be0ad62643a84 /_spec.md
4
+ // and https://github.com/avade/servicebroker/blob/8c340c610c6085c1aa32144faef0d1600c21576c /_spec.md
5
5
6
6
import (
7
7
jsschema "github.com/lestrrat/go-jsschema"
@@ -42,8 +42,8 @@ type Plan struct {
42
42
}
43
43
44
44
type Schema struct {
45
- ServiceInstances ServiceInstances `json:"service-instances ,omitempty"`
46
- ServiceBindings ServiceBindings `json:"service-bindings ,omitempty"`
45
+ ServiceInstance ServiceInstances `json:"service_instance ,omitempty"`
46
+ ServiceBinding ServiceBindings `json:"service_binding ,omitempty"`
47
47
}
48
48
49
49
type ServiceInstances struct {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ func serviceFromTemplate(template *templateapi.Template) *api.Service {
77
77
Free : true ,
78
78
Bindable : true ,
79
79
Schemas : api.Schema {
80
- ServiceInstances : api.ServiceInstances {
80
+ ServiceInstance : api.ServiceInstances {
81
81
Create : map [string ]* jsschema.Schema {
82
82
"parameters" : {
83
83
SchemaRef : jsschema .SchemaURL ,
@@ -87,7 +87,7 @@ func serviceFromTemplate(template *templateapi.Template) *api.Service {
87
87
},
88
88
},
89
89
},
90
- ServiceBindings : api.ServiceBindings {
90
+ ServiceBinding : api.ServiceBindings {
91
91
Create : map [string ]* jsschema.Schema {
92
92
"parameters" : {
93
93
SchemaRef : jsschema .SchemaURL ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func TestServiceFromTemplate(t *testing.T) {
61
61
Free : true ,
62
62
Bindable : true ,
63
63
Schemas : api.Schema {
64
- ServiceInstances : api.ServiceInstances {
64
+ ServiceInstance : api.ServiceInstances {
65
65
Create : map [string ]* schema.Schema {
66
66
"parameters" : {
67
67
Type : schema.PrimitiveTypes {schema .ObjectType },
@@ -94,7 +94,7 @@ func TestServiceFromTemplate(t *testing.T) {
94
94
},
95
95
},
96
96
},
97
- ServiceBindings : api.ServiceBindings {
97
+ ServiceBinding : api.ServiceBindings {
98
98
Create : map [string ]* schema.Schema {
99
99
"parameters" : {
100
100
Type : schema.PrimitiveTypes {schema .ObjectType },
You can’t perform that action at this time.
0 commit comments