1+ {
2+ "$defs" : {
3+ "BaseModel" : {
4+ "properties" : {},
5+ "title" : " BaseModel" ,
6+ "type" : " object"
7+ },
8+ "KarapaceProviderData" : {
9+ "description" : " The databag for the provider side of this interface." ,
10+ "properties" : {
11+ "subject" : {
12+ "description" : " The subject that has been made available to the relation user. Name defined in the Requirer's subject field" ,
13+ "examples" : [
14+ " subject-1"
15+ ],
16+ "title" : " Subject name" ,
17+ "type" : " string"
18+ },
19+ "username" : {
20+ "description" : " Username for connecting to the Karapace service" ,
21+ "examples" : [
22+ " relation-14"
23+ ],
24+ "title" : " Karapace username" ,
25+ "type" : " string"
26+ },
27+ "password" : {
28+ "description" : " Password for connecting to the Karapace service" ,
29+ "examples" : [
30+ " alphanum-32byte-random"
31+ ],
32+ "title" : " Karapace password" ,
33+ "type" : " string"
34+ },
35+ "endpoints" : {
36+ "description" : " A list of endpoints used to connect to the subject" ,
37+ "examples" : [
38+ " 10.141.78.155:8082,10.141.78.62:8082,10.141.78.186:8082"
39+ ],
40+ "title" : " Karapace server endpoints" ,
41+ "type" : " string"
42+ },
43+ "entity-name" : {
44+ "anyOf" : [
45+ {
46+ "type" : " string"
47+ },
48+ {
49+ "type" : " null"
50+ }
51+ ],
52+ "default" : null ,
53+ "description" : " Name for the requested custom entity" ,
54+ "examples" : [
55+ " custom-role"
56+ ],
57+ "title" : " Entity name"
58+ },
59+ "entity-password" : {
60+ "anyOf" : [
61+ {
62+ "type" : " string"
63+ },
64+ {
65+ "type" : " null"
66+ }
67+ ],
68+ "default" : null ,
69+ "description" : " Password for the requested custom entity" ,
70+ "examples" : [
71+ " alphanum-32byte-random"
72+ ],
73+ "title" : " Entity password"
74+ }
75+ },
76+ "required" : [
77+ " subject" ,
78+ " username" ,
79+ " password" ,
80+ " endpoints"
81+ ],
82+ "title" : " KarapaceProviderData" ,
83+ "type" : " object"
84+ }
85+ },
86+ "description" : " The schema for the provider side of this interface." ,
87+ "properties" : {
88+ "unit" : {
89+ "anyOf" : [
90+ {
91+ "$ref" : " #/$defs/BaseModel"
92+ },
93+ {
94+ "type" : " null"
95+ }
96+ ],
97+ "default" : null
98+ },
99+ "app" : {
100+ "$ref" : " #/$defs/KarapaceProviderData"
101+ }
102+ },
103+ "required" : [
104+ " app"
105+ ],
106+ "title" : " ProviderSchema" ,
107+ "type" : " object"
108+ }
0 commit comments