|
1 | | -# Schema for the user-info-vsdm2 json object. |
2 | | -# The VSDM2 Resource Server uses the schema to validate the ZETA-user-info HTTP header |
| 1 | +# user-info-vsdm2.yaml |
| 2 | +# Schema for the extended user-info json object (VSDM2). |
| 3 | +# This schema inherits from user-info.yaml and adds new attributes. |
| 4 | +# The VSDM2 Resource Server uses the schema to validate the ZETA-user-info HTTP header. |
3 | 5 | # |
4 | 6 | $schema: "http://json-schema.org/draft-07/schema#" |
5 | | -user_info: |
6 | | - type: object |
7 | | - properties: |
8 | | - subject: |
9 | | - type: string |
10 | | - description: "User id. Assigned by the Authorization Server." |
11 | | - identifier: |
12 | | - type: string |
13 | | - description: "Telematik-ID, KVNR or other unique identifier" |
14 | | - professionOID: |
15 | | - type: string |
16 | | - description: "Profession identifier (OID)" |
17 | | - organizationName: |
18 | | - type: string |
19 | | - description: "Name of the organization" |
20 | | - commonName: |
21 | | - type: string |
22 | | - description: "Common name of the organization" |
23 | | - required: |
24 | | - - subject |
25 | | - - identifier |
26 | | - - professionOID |
27 | | - additionalProperties: true |
28 | | - |
| 7 | + |
| 8 | +type: object |
| 9 | +allOf: |
| 10 | + # 1. Referenz auf das Basis-Schema |
| 11 | + # Stellt sicher, dass alle Eigenschaften und Anforderungen von user-info.yaml erfüllt sind. |
| 12 | + # Der Pfad "#/user_info" zeigt auf den "user_info" Schlüssel in der user-info.yaml Datei. |
| 13 | + # Stellen Sie sicher, dass der Pfad zur user-info.yaml korrekt ist (hier angenommen im selben Verzeichnis). |
| 14 | + - $ref: "https://raw.githubusercontent.com/gematik/spec-t20r/refs/heads/main/src/schemas/user-info.yaml#/user_info" |
| 15 | + |
| 16 | + # 2. Zusätzliche Eigenschaften und Anforderungen für user-info-vsdm2 |
| 17 | + - type: object |
| 18 | + properties: |
| 19 | + organizationName: |
| 20 | + type: string |
| 21 | + description: "Name of the organization" |
| 22 | + commonName: |
| 23 | + type: string |
| 24 | + description: "Common name of the organization" |
| 25 | + required: |
| 26 | + # Nur die *zusätzlich* erforderlichen Felder werden hier aufgelistet. |
| 27 | + # Die 'required' Felder aus dem Basis-Schema (subject, identifier, professionOID) |
| 28 | + # werden durch die $ref-Referenz oben bereits implizit gefordert. |
| 29 | + - commonName |
0 commit comments