@redocly/config 0.36.1 → 0.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,7 +73,6 @@ export const dataSchemaMetadataSchema = {
73
73
  description: 'SDL of the data structure',
74
74
  },
75
75
  },
76
- anyOf: [{ required: ['schema'] }, { required: ['sdl'] }],
77
76
  required: ['specType'],
78
77
  additionalProperties: true,
79
78
  };
@@ -185,18 +184,22 @@ export const entityBaseProperties = {
185
184
  minLength: 2,
186
185
  maxLength: 150,
187
186
  },
187
+ type: {
188
+ type: 'string',
189
+ enum: ['user', 'data-schema', 'api-operation', 'api-description', 'service', 'domain', 'team'],
190
+ },
188
191
  title: {
189
192
  type: 'string',
190
193
  minLength: 2,
191
194
  maxLength: 200,
192
195
  },
193
196
  summary: {
194
- type: ['string', 'null'],
197
+ type: 'string',
195
198
  minLength: 1,
196
199
  maxLength: 500,
197
200
  },
198
201
  tags: {
199
- type: ['array', 'null'],
202
+ type: 'array',
200
203
  items: {
201
204
  type: 'string',
202
205
  minLength: 1,
@@ -204,31 +207,23 @@ export const entityBaseProperties = {
204
207
  },
205
208
  },
206
209
  git: {
207
- type: ['array', 'null'],
210
+ type: 'array',
208
211
  items: {
209
212
  type: 'string',
210
213
  },
211
214
  },
212
- contact: {
213
- anyOf: [{ type: 'null' }, entityContactFileSchema],
214
- },
215
+ contact: entityContactFileSchema,
215
216
  links: {
216
- anyOf: [
217
- { type: 'null' },
218
- {
219
- type: 'array',
220
- items: entityLinkFileSchema,
221
- },
222
- ],
217
+ type: 'array',
218
+ items: entityLinkFileSchema,
223
219
  },
224
220
  relations: {
225
- anyOf: [
226
- { type: 'null' },
227
- {
228
- type: 'array',
229
- items: entityRelationFileSchema,
230
- },
231
- ],
221
+ type: 'array',
222
+ items: entityRelationFileSchema,
223
+ },
224
+ metadata: {
225
+ type: 'object',
226
+ additionalProperties: true,
232
227
  },
233
228
  };
234
229
  export const entityFileSchema = {
@@ -263,13 +258,28 @@ export const entityFileSchema = {
263
258
  },
264
259
  {
265
260
  type: 'object',
266
- properties: Object.assign(Object.assign({}, entityBaseProperties), { type: { enum: ['service', 'domain', 'team'] }, metadata: {
267
- type: ['object', 'null'],
268
- additionalProperties: true,
269
- } }),
261
+ properties: Object.assign(Object.assign({}, entityBaseProperties), { type: { const: 'service' } }),
262
+ required: ['key', 'title', 'type'],
263
+ additionalProperties: false,
264
+ },
265
+ {
266
+ type: 'object',
267
+ properties: Object.assign(Object.assign({}, entityBaseProperties), { type: { const: 'domain' } }),
268
+ required: ['key', 'title', 'type'],
269
+ additionalProperties: false,
270
+ },
271
+ {
272
+ type: 'object',
273
+ properties: Object.assign(Object.assign({}, entityBaseProperties), { type: { const: 'team' } }),
270
274
  required: ['key', 'title', 'type'],
271
275
  additionalProperties: false,
272
276
  },
273
277
  ],
274
278
  };
279
+ export const entityFileDefaultSchema = {
280
+ type: 'object',
281
+ properties: Object.assign({}, entityBaseProperties),
282
+ required: ['key', 'title', 'type'],
283
+ additionalProperties: false,
284
+ };
275
285
  //# sourceMappingURL=entities-catalog-entity-file-schema.js.map
@@ -170,7 +170,7 @@ export type PageProps = {
170
170
  frontmatter?: Omit<PageProps, 'frontmatter'> & {
171
171
  settings?: any;
172
172
  } & Partial<UiAccessibleConfig> & {
173
- navigation?: {
173
+ navigation?: Partial<UiAccessibleConfig['navigation']> & {
174
174
  nextButton?: {
175
175
  link?: string;
176
176
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.36.1",
3
+ "version": "0.36.2",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",