Skip to content

Commit

Permalink
Update datamodel.xsd (#1809)
Browse files Browse the repository at this point in the history
The structure and content of the XSD file was no longer correct and resulted in unwanted behavior in Studio.
  • Loading branch information
Konrad-Simso authored Oct 14, 2024
1 parent f4cc88e commit 5ed5714
Showing 1 changed file with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="InnflytterSkjema" type="Skjema" />
<xsd:annotation>
<xsd:documentation>
<xsd:attribute name="rootNode" fixed="" />
</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="Skjema">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="Innflytter" type="Innflytter" />
<xsd:element minOccurs="1" maxOccurs="1" name="Innflytter" type="Innflytter" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Innflytter">
<xsd:complexType name="Innflytter">
<xsd:sequence>
<xsd:element name="Fornavn" minOccurs="1" maxOccurs="1" type="xsd:string" />
<xsd:element name="Etternavn" minOccurs="1" maxOccurs="1" type="xsd:string" />
Expand All @@ -14,15 +18,15 @@
<xsd:element name="Arbeidsinformasjon" minOccurs="1" maxOccurs="1" type="Arbeidsinformasjon" />
<xsd:element name="KanBrukeSkjema" nillable="true" minOccurs="1" maxOccurs="1" type="xsd:boolean" />
<xsd:element name="TidligereBosteder" minOccurs="1" maxOccurs="10" type="Adresse" />
<xsd:element name="Adresse" type="Adresse" minOccurs="1" maxOccurs="1" />
<xsd:element name="Kontaktinformasjon" type="Kontaktinformasjon" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Adresse" type="Adresse" minOccurs="1" maxOccurs="1" />
<xsd:element name="Kontaktinformasjon" type="Kontaktinformasjon" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Adresse">
<xsd:sequence>
<xsd:element name="Gateadresse" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="Postnr" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="Poststed" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="Poststed" type="xsd:string" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Kontaktinformasjon">
Expand All @@ -31,11 +35,18 @@
<xsd:element name="Epost" type="xsd:string" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Arbeidsinformasjon">
<xsd:complexType name="Arbeidsinformasjon">
<xsd:sequence>
<xsd:element name="Sektor" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="Sektor" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="Bransje" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="AarIArbeidslivet" type="xsd:string" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="InnflytterSkjema">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="InnflytterSkjema" type="Skjema" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

0 comments on commit 5ed5714

Please sign in to comment.