fixtures.ts 966 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { SchemaType } from 'generated-sources';
  2. export const schemaVersion = {
  3. subject: 'schema7_1',
  4. version: '1',
  5. id: 2,
  6. schema:
  7. '{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://example.com/myURI.schema.json","title":"TestRecord","type":"object","additionalProperties":false,"properties":{"f1":{"type":"integer"},"f2":{"type":"string"},"schema":{"type":"string"}}}',
  8. compatibilityLevel: 'FULL',
  9. schemaType: SchemaType.JSON,
  10. };
  11. export const schemasFulfilledState = {
  12. ids: ['MySchemaSubject', 'schema7_1'],
  13. entities: {
  14. MySchemaSubject: {
  15. subject: 'MySchemaSubject',
  16. version: '1',
  17. id: 28,
  18. schema: '12',
  19. compatibilityLevel: 'FORWARD_TRANSITIVE',
  20. schemaType: SchemaType.JSON,
  21. },
  22. schema7_1: schemaVersion,
  23. },
  24. versions: {
  25. ids: [],
  26. entities: {},
  27. },
  28. };
  29. export const schemasInitialState = {
  30. ids: [],
  31. entities: {},
  32. versions: {
  33. ids: [],
  34. entities: {},
  35. },
  36. };