diff --git a/apps/judicial-system/api/src/app/modules/police/models/subpoenaStatus.model.ts b/apps/judicial-system/api/src/app/modules/police/models/subpoenaStatus.model.ts index b4617bfe58a4..6f7a85461e10 100644 --- a/apps/judicial-system/api/src/app/modules/police/models/subpoenaStatus.model.ts +++ b/apps/judicial-system/api/src/app/modules/police/models/subpoenaStatus.model.ts @@ -4,8 +4,8 @@ import { ServiceStatus } from '@island.is/judicial-system/types' @ObjectType() export class SubpoenaStatus { - @Field(() => ServiceStatus) - readonly serviceStatus!: ServiceStatus + @Field(() => ServiceStatus, { nullable: true }) + readonly serviceStatus?: ServiceStatus @Field(() => String, { nullable: true }) readonly servedBy?: string diff --git a/apps/judicial-system/backend/src/app/modules/case/internalCase.service.ts b/apps/judicial-system/backend/src/app/modules/case/internalCase.service.ts index dd1271f2ba0b..5828d3a0841b 100644 --- a/apps/judicial-system/backend/src/app/modules/case/internalCase.service.ts +++ b/apps/judicial-system/backend/src/app/modules/case/internalCase.service.ts @@ -260,7 +260,7 @@ export class InternalCaseService { } } - private async upploadRequestPdfToCourt( + private async uploadRequestPdfToCourt( theCase: Case, user: TUser, ): Promise { @@ -758,7 +758,7 @@ export class InternalCaseService { ): Promise { await this.refreshFormatMessage() - return this.upploadRequestPdfToCourt(theCase, user).then((delivered) => ({ + return this.uploadRequestPdfToCourt(theCase, user).then((delivered) => ({ delivered, })) } diff --git a/apps/judicial-system/backend/src/app/modules/court/court.service.ts b/apps/judicial-system/backend/src/app/modules/court/court.service.ts index 208ff6752f6b..3ff75964c054 100644 --- a/apps/judicial-system/backend/src/app/modules/court/court.service.ts +++ b/apps/judicial-system/backend/src/app/modules/court/court.service.ts @@ -582,6 +582,7 @@ export class CourtService { subtypes, defendants, prosecutor, + courtName, }) return this.sendToRobot( @@ -624,7 +625,7 @@ export class CourtService { })) const subject = `${courtName} - ${courtCaseNumber} - verjanda upplýsingar` - const content = JSON.stringify(defendantInfo) + const content = JSON.stringify({ defendants: defendantInfo, courtName }) return this.sendToRobot( subject, @@ -657,7 +658,7 @@ export class CourtService { ): Promise { try { const subject = `${courtName} - ${courtCaseNumber} - úthlutun` - const content = JSON.stringify(assignedRole) + const content = JSON.stringify({ ...assignedRole, courtName }) return this.sendToRobot( subject, @@ -689,7 +690,11 @@ export class CourtService { noticeText?: string, ): Promise { const subject = `${courtName} - ${courtCaseNumber} - afturköllun` - const content = JSON.stringify({ subject: noticeSubject, text: noticeText }) + const content = JSON.stringify({ + subject: noticeSubject, + text: noticeText, + courtName, + }) return this.sendToRobot( subject, diff --git a/apps/judicial-system/backend/src/app/modules/police/police.service.ts b/apps/judicial-system/backend/src/app/modules/police/police.service.ts index c2a6b4daed9c..d84f0e02ef81 100644 --- a/apps/judicial-system/backend/src/app/modules/police/police.service.ts +++ b/apps/judicial-system/backend/src/app/modules/police/police.service.ts @@ -352,6 +352,21 @@ export class PoliceService { subpoenaId, ) + const serviceStatus = response.deliveredToLawyer + ? ServiceStatus.DEFENDER + : response.prosecutedConfirmedSubpoenaThroughIslandis + ? ServiceStatus.ELECTRONICALLY + : response.deliveredOnPaper || response.delivered === true + ? ServiceStatus.IN_PERSON + : response.acknowledged === false && response.delivered === false + ? ServiceStatus.FAILED + : // TODO: handle expired + undefined + + if (serviceStatus === undefined) { + return subpoenaToUpdate + } + const updatedSubpoena = await this.subpoenaService.update( subpoenaToUpdate, { @@ -359,16 +374,7 @@ export class PoliceService { servedBy: response.servedBy ?? undefined, defenderNationalId: response.defenderNationalId ?? undefined, serviceDate: response.servedAt ?? undefined, - serviceStatus: response.deliveredToLawyer - ? ServiceStatus.DEFENDER - : response.prosecutedConfirmedSubpoenaThroughIslandis - ? ServiceStatus.ELECTRONICALLY - : response.deliveredOnPaper || response.delivered === true - ? ServiceStatus.IN_PERSON - : response.acknowledged === false - ? ServiceStatus.FAILED - : // TODO: handle expired - undefined, + serviceStatus, } as UpdateSubpoenaDto, ) diff --git a/apps/judicial-system/backend/src/app/modules/subpoena/dto/updateSubpoena.dto.ts b/apps/judicial-system/backend/src/app/modules/subpoena/dto/updateSubpoena.dto.ts index 1b93bdd29b27..1154f6fb0f81 100644 --- a/apps/judicial-system/backend/src/app/modules/subpoena/dto/updateSubpoena.dto.ts +++ b/apps/judicial-system/backend/src/app/modules/subpoena/dto/updateSubpoena.dto.ts @@ -1,4 +1,4 @@ -import { IsDate, IsEnum, IsOptional, IsString } from 'class-validator' +import { IsEnum, IsOptional, IsString } from 'class-validator' import { ApiPropertyOptional } from '@nestjs/swagger' diff --git a/apps/judicial-system/web/pages/krafa/rannsoknarheimild/domkrofur-og-lagagrundvollur/[id].ts b/apps/judicial-system/web/pages/krafa/rannsoknarheimild/domkrofur-og-lagagrundvollur/[id].ts index 559751394a91..fcd8c7bc71d9 100644 --- a/apps/judicial-system/web/pages/krafa/rannsoknarheimild/domkrofur-og-lagagrundvollur/[id].ts +++ b/apps/judicial-system/web/pages/krafa/rannsoknarheimild/domkrofur-og-lagagrundvollur/[id].ts @@ -1,3 +1,3 @@ -import PoliceDemands from '@island.is/judicial-system-web/src/routes//Prosecutor/InvestigationCase/PoliceDemands/PoliceDemands' +import PoliceDemands from '@island.is/judicial-system-web/src/routes/Prosecutor/InvestigationCase/PoliceDemands/PoliceDemands' export default PoliceDemands diff --git a/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.strings.ts b/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.strings.ts index a145bc5b8307..e107defc85fb 100644 --- a/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.strings.ts +++ b/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.strings.ts @@ -23,17 +23,22 @@ export const strings = defineMessages({ }, serviceStatusUnknown: { id: 'judicial.system.core:service_announcement.service_status_unknown', - defaultMessage: 'Birtingastaða óþekkt', + defaultMessage: 'Ákæra er í birtingarferli', description: 'Notaður sem texti þegar ekki er vitað um stöðu birtingar.', }, servedToDefender: { id: 'judicial.system.core:service_announcement.served_to_defender', defaultMessage: 'Birt fyrir verjanda - {lawyerName} {practice}', - description: 'Notaður sem texti þegar birti var verjanda.', + description: 'Notaður sem texti þegar birt var verjanda.', }, servedToElectronically: { id: 'judicial.system.core:service_announcement.served_electronically', defaultMessage: 'Rafrænt pósthólf island.is - {date}', - description: 'Notaður sem texti þegar birti var í pósthólfi.', + description: 'Notaður sem texti þegar birt var í pósthólfi.', + }, + subpoenaCreated: { + id: 'judicial.system.core:service_announcement.subpoena_created', + defaultMessage: 'Ákæra fór í birtingu {date}', + description: 'Notaður sem texti þegar birt var í pósthólfi.', }, }) diff --git a/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.tsx b/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.tsx index 3da5a6a2af5a..2c2b09df085b 100644 --- a/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.tsx +++ b/apps/judicial-system/web/src/components/ServiceAnnouncement/ServiceAnnouncement.tsx @@ -11,7 +11,6 @@ import { } from '@island.is/judicial-system-web/src/graphql/schema' import { useGetLawyer, useSubpoena } from '../../utils/hooks' -import { SubpoenaStatusQuery } from '../../utils/hooks/useSubpoena/getSubpoenaStatus.generated' import { strings } from './ServiceAnnouncement.strings' const mapServiceStatusTitle = ( @@ -40,7 +39,11 @@ const mapServiceStatusMessages = ( switch (subpoena.serviceStatus) { case ServiceStatus.DEFENDER: return [ - `${subpoena.servedBy} - ${formatDate(subpoena.serviceDate, 'Pp')}`, + `${subpoena.servedBy ? subpoena.servedBy : ''}${ + subpoena.serviceDate + ? ` - ${formatDate(subpoena.serviceDate, 'Pp')}` + : '' + }`, formatMessage(strings.servedToDefender, { lawyerName: lawyer?.name, practice: lawyer?.practice, @@ -49,19 +52,29 @@ const mapServiceStatusMessages = ( case ServiceStatus.ELECTRONICALLY: return [ formatMessage(strings.servedToElectronically, { - date: formatDate(subpoena.serviceDate, 'Pp'), + date: subpoena.serviceDate + ? formatDate(subpoena.serviceDate, 'Pp') + : '', }), ] case ServiceStatus.IN_PERSON: case ServiceStatus.FAILED: return [ - `${subpoena.servedBy} - ${formatDate(subpoena.serviceDate, 'Pp')}`, + `${subpoena.servedBy ? subpoena.servedBy : ''}${ + subpoena.serviceDate + ? ` - ${formatDate(subpoena.serviceDate, 'Pp')}` + : '' + }`, subpoena.comment, ] case ServiceStatus.EXPIRED: return [formatMessage(strings.serviceStatusExpiredMessage)] default: - return [] + return [ + formatMessage(strings.subpoenaCreated, { + date: subpoena.created ? formatDate(subpoena.created, 'Pp') : '', + }), + ] } } @@ -100,7 +113,7 @@ const ServiceAnnouncement: FC = (props) => { // Use data from RLS but fallback to local data useEffect(() => { - if (subpoenaStatusError) { + if (subpoenaStatusError || localSubpoena.serviceStatus) { setSubpoena(localSubpoena) } else { setSubpoena({ @@ -114,16 +127,18 @@ const ServiceAnnouncement: FC = (props) => { } }, [localSubpoena, subpoenaStatus, subpoenaStatusError]) - return !defendantName ? null : !subpoena && !subpoenaStatusLoading ? ( + return !subpoena && !subpoenaStatusLoading ? ( {renderError(formatMessage)} - ) : subpoenaStatusLoading ? ( + ) : subpoenaStatusLoading && !localSubpoena.serviceStatus ? ( ) : ( {messages.map((msg) => ( @@ -134,8 +149,10 @@ const ServiceAnnouncement: FC = (props) => { } type={ - subpoena?.serviceStatus === ServiceStatus.FAILED || - subpoena?.serviceStatus === ServiceStatus.EXPIRED + !subpoena?.serviceStatus + ? 'info' + : subpoena?.serviceStatus === ServiceStatus.FAILED || + subpoena?.serviceStatus === ServiceStatus.EXPIRED ? 'warning' : 'success' } diff --git a/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Overview/Overview.tsx b/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Overview/Overview.tsx index fc8d3994709c..a5f30f21a502 100644 --- a/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Overview/Overview.tsx +++ b/apps/judicial-system/web/src/routes/Prosecutor/Indictments/Overview/Overview.tsx @@ -195,13 +195,16 @@ const Overview: FC = () => { {workingCase.defendants?.map((defendant) => - defendant.subpoenas?.map((subpoena) => ( - - )), + defendant.subpoenas?.map( + (subpoena) => + subpoena.subpoenaId && ( + + ), + ), )} {workingCase.court && latestDate?.date && diff --git a/apps/web/utils/richText.tsx b/apps/web/utils/richText.tsx index 3701edfb4a4e..83f366ef0fc2 100644 --- a/apps/web/utils/richText.tsx +++ b/apps/web/utils/richText.tsx @@ -4,6 +4,8 @@ import { IntlConfig, IntlProvider } from 'react-intl' import { FaqList, type FaqListProps, + Image, + type ImageProps, renderConnectedComponent, richText, SectionWithImage, @@ -279,6 +281,11 @@ const defaultRenderComponent = { variant={slice.variant as 'accordion' | 'card'} /> ), + Image: (slice: ImageProps) => { + const thumbnailUrl = slice?.url ? slice.url + '?w=50' : '' + const url = slice?.url ? slice.url + '?w=800' : '' + return + }, } export const webRichText = ( diff --git a/libs/api/domains/syslumenn/src/lib/dto/searchForProperty.input.ts b/libs/api/domains/syslumenn/src/lib/dto/searchForProperty.input.ts index b1c3d178c0c0..5dbd26caa34b 100644 --- a/libs/api/domains/syslumenn/src/lib/dto/searchForProperty.input.ts +++ b/libs/api/domains/syslumenn/src/lib/dto/searchForProperty.input.ts @@ -1,4 +1,4 @@ -import { IsString, IsOptional, IsNumber } from 'class-validator' +import { IsString, IsOptional } from 'class-validator' import { Field, InputType } from '@nestjs/graphql' @InputType() diff --git a/libs/api/domains/work-machines/src/lib/models/category.ts b/libs/api/domains/work-machines/src/lib/models/category.ts index 7556f64f03ad..a2e6b804168b 100644 --- a/libs/api/domains/work-machines/src/lib/models/category.ts +++ b/libs/api/domains/work-machines/src/lib/models/category.ts @@ -5,9 +5,15 @@ export class Category { @Field(() => String, { nullable: true }) name?: string | null + @Field(() => String, { nullable: true }) + nameEn?: string | null + @Field(() => String, { nullable: true }) subCategoryName?: string | null + @Field(() => String, { nullable: true }) + subCategoryNameEn?: string | null + @Field(() => String, { nullable: true }) registrationNumberPrefix?: string | null } diff --git a/libs/api/domains/work-machines/src/lib/models/subCategory.ts b/libs/api/domains/work-machines/src/lib/models/subCategory.ts index f4c5ac0fdcfb..097827cea994 100644 --- a/libs/api/domains/work-machines/src/lib/models/subCategory.ts +++ b/libs/api/domains/work-machines/src/lib/models/subCategory.ts @@ -5,9 +5,15 @@ export class SubCategory { @Field(() => String, { nullable: true }) name?: string | null + @Field(() => String, { nullable: true }) + nameEn?: string | null + @Field(() => String, { nullable: true }) parentCategoryName?: string | null + @Field(() => String, { nullable: true }) + parentCategoryNameEn?: string | null + @Field(() => String, { nullable: true }) registrationNumberPrefix?: string | null } diff --git a/libs/api/domains/work-machines/src/lib/models/techInfoItem.ts b/libs/api/domains/work-machines/src/lib/models/techInfoItem.ts index 2cd0a1a09863..9930e7090c87 100644 --- a/libs/api/domains/work-machines/src/lib/models/techInfoItem.ts +++ b/libs/api/domains/work-machines/src/lib/models/techInfoItem.ts @@ -8,6 +8,9 @@ export class TechInfoItem { @Field(() => String, { nullable: true }) label?: string | null + @Field(() => String, { nullable: true }) + labelEn?: string | null + @Field(() => String, { nullable: true }) type?: string | null @@ -17,6 +20,15 @@ export class TechInfoItem { @Field(() => String, { nullable: true }) maxLength?: string | null - @Field(() => [String], { nullable: true }) - values?: Array | null + @Field(() => [TechInfoListItem], { nullable: true }) + values?: Array | null +} + +@ObjectType('WorkMachinesTechInfoListItem') +export class TechInfoListItem { + @Field(() => String, { nullable: true }) + name?: string | null + + @Field(() => String, { nullable: true }) + nameEn?: string | null } diff --git a/libs/api/domains/work-machines/src/lib/workMachines.resolver.ts b/libs/api/domains/work-machines/src/lib/workMachines.resolver.ts index de0f5add00b0..6458e839a70c 100644 --- a/libs/api/domains/work-machines/src/lib/workMachines.resolver.ts +++ b/libs/api/domains/work-machines/src/lib/workMachines.resolver.ts @@ -146,7 +146,7 @@ export class WorkMachinesResolver { } @Scopes(ApiScope.vinnueftirlitid) - @Query(() => Category) + @Query(() => [Category]) @Audit() async getMachineParentCategoryByTypeAndModel( @CurrentUser() auth: User, diff --git a/libs/api/domains/work-machines/src/lib/workMachines.service.ts b/libs/api/domains/work-machines/src/lib/workMachines.service.ts index 1dfb2186d2ec..2d1e083697d4 100644 --- a/libs/api/domains/work-machines/src/lib/workMachines.service.ts +++ b/libs/api/domains/work-machines/src/lib/workMachines.service.ts @@ -186,7 +186,7 @@ export class WorkMachinesService { async getMachineParentCategoriesTypeModelGet( auth: User, input: GetMachineParentCategoryByTypeAndModelInput, - ): Promise { + ): Promise { return this.machineService.getMachineParentCategoriesTypeModel(auth, { type: input.type, model: input.model, diff --git a/libs/application/core/src/validation/validators.spec.ts b/libs/application/core/src/validation/validators.spec.ts index 4e0d56cef3ea..1e99bd74cf1b 100644 --- a/libs/application/core/src/validation/validators.spec.ts +++ b/libs/application/core/src/validation/validators.spec.ts @@ -580,6 +580,50 @@ describe('validateAnswers', () => { value: expectedMessage, }) }) + + it('should not throw error when validation fails but current screen does not include the path', () => { + const schema = z.object({ + anArray: z.array(z.string()).nonempty(), + somethingElse: z.number(), + }) + const value = { + anArray: [], + somethingElse: 4, + } + + expect( + validateAnswers({ + dataSchema: schema, + answers: value, + formatMessage, + isFullSchemaValidation: false, + currentScreenFields: ['somethingElse'], + }), + ).toBeUndefined() + }) + + it('should throw error when validation fails and current screen includes the path', () => { + const schema = z.object({ + anArray: z.array(z.string()).nonempty(), + somethingElse: z.number(), + }) + const value = { + anArray: [], + somethingElse: 4, + } + + expect( + validateAnswers({ + dataSchema: schema, + answers: value, + formatMessage, + isFullSchemaValidation: false, + currentScreenFields: ['anArray', 'somethingElse'], + }), + ).toEqual({ + anArray: defaultError, + }) + }) }) }) diff --git a/libs/application/core/src/validation/validators.ts b/libs/application/core/src/validation/validators.ts index 8d347ccd7766..2ea9e314479a 100644 --- a/libs/application/core/src/validation/validators.ts +++ b/libs/application/core/src/validation/validators.ts @@ -18,8 +18,10 @@ const populateError = ( error: ZodIssue[], pathToError: string | undefined, formatMessage: FormatMessage, + currentScreenFields?: string[], ) => { - let errorObject = {} + let errorObject: Record = {} + error.forEach((element) => { const defaultZodError = element.message === 'Invalid input' const path = pathToError || element.path @@ -35,6 +37,33 @@ const populateError = ( } errorObject = set(errorObject, path, message) }) + + /** + * If currentScreenFields is provided, only return errors for fields on that screen. + * This is to avoid bugs in some scenarios (f.x. when going back via the browser back button) + * Zod tries to validate screens that are not currently active, causing the user to not + * be able to submit the screen. + */ + if (currentScreenFields && currentScreenFields.length > 0) { + // If we have nested fields, we need to resolve only the top level field + const resolvedNestedFields = currentScreenFields.map( + (id) => id.split('.')[0], + ) + const relevantErrors = Object.fromEntries( + Object.entries(errorObject).filter(([key]) => + resolvedNestedFields.includes(key), + ), + ) + + if (Object.keys(relevantErrors).length === 0) { + // No errors on the current screen + return undefined + } + + console.info(relevantErrors) + return relevantErrors + } + console.info(errorObject) return errorObject } @@ -43,11 +72,13 @@ export const validateAnswers = ({ dataSchema, answers, formatMessage, + currentScreenFields, }: { dataSchema: Schema | ZodEffects answers: FormValue isFullSchemaValidation?: boolean formatMessage: FormatMessage + currentScreenFields?: string[] }): ValidationRecord | undefined => { try { if (dataSchema instanceof ZodEffects) { @@ -59,7 +90,7 @@ export const validateAnswers = ({ } } catch (e) { const zodErrors: ZodIssue[] = e.errors - return populateError(zodErrors, e.path, formatMessage) + return populateError(zodErrors, e.path, formatMessage, currentScreenFields) } return undefined } diff --git a/libs/application/template-api-modules/src/lib/modules/templates/aosh/register-new-machine/register-new-machine.service.ts b/libs/application/template-api-modules/src/lib/modules/templates/aosh/register-new-machine/register-new-machine.service.ts index 27ed649dd0b7..2b5a6510657c 100644 --- a/libs/application/template-api-modules/src/lib/modules/templates/aosh/register-new-machine/register-new-machine.service.ts +++ b/libs/application/template-api-modules/src/lib/modules/templates/aosh/register-new-machine/register-new-machine.service.ts @@ -66,7 +66,11 @@ export class RegisterNewMachineTemplateService extends BaseTemplateApiService { answers.techInfo.forEach(({ variableName, value }) => { if (variableName && value) { techInfo[variableName] = - value === 'yes' ? true : value === 'no' ? false : value + value.nameIs === 'yes' + ? true + : value.nameIs === 'no' + ? false + : value.nameIs } }) @@ -126,8 +130,8 @@ export class RegisterNewMachineTemplateService extends BaseTemplateApiService { used: answers.machine.basicInformation?.isUsed === 'used', type: answers.machine.aboutMachine?.type ?? '', model: answers.machine.aboutMachine?.model ?? '', - parentCategory: answers.machine.aboutMachine?.category ?? '', - subCategory: answers.machine.aboutMachine?.subcategory ?? '', + parentCategory: answers.machine.aboutMachine?.category?.nameIs ?? '', + subCategory: answers.machine.aboutMachine?.subcategory?.nameIs ?? '', streetRegistrationRequested: answers.machine.streetRegistration?.registerToTraffic === 'yes', plateSize: answers.machine.streetRegistration?.size diff --git a/libs/application/templates/aosh/register-new-machine/src/fields/AboutMachine/index.tsx b/libs/application/templates/aosh/register-new-machine/src/fields/AboutMachine/index.tsx index b75a10f65199..a43ba37f2e0d 100644 --- a/libs/application/templates/aosh/register-new-machine/src/fields/AboutMachine/index.tsx +++ b/libs/application/templates/aosh/register-new-machine/src/fields/AboutMachine/index.tsx @@ -8,6 +8,8 @@ import { useLocale } from '@island.is/localization' import { coreErrorMessages, getValueViaPath } from '@island.is/application/core' import { Controller, useFormContext } from 'react-hook-form' import { MACHINE_SUB_CATEGORIES } from '../../graphql/queries' +import { CategoryType } from '../../shared/types' +import { getAboutMachineAnswers } from '../../utils' export const machineSubCategories = gql` ${MACHINE_SUB_CATEGORIES} @@ -17,44 +19,29 @@ export const AboutMachine: FC> = ( props, ) => { const { application, field, setBeforeSubmitCallback } = props - const { formatMessage } = useLocale() + const { formatMessage, lang } = useLocale() const { control, register, setValue } = useFormContext() - const machineParentCategories = getValueViaPath( - application.externalData, - 'machineParentCategories.data', - [], - ) as { name: string }[] - const machineType = getValueViaPath( - application.answers, - 'machine.aboutMachine.type', - '', - ) as string - const machineModel = getValueViaPath( - application.answers, - 'machine.aboutMachine.model', - '', - ) as string - const machineCategory = getValueViaPath( - application.answers, - 'machine.aboutMachine.category', - '', - ) as string - const machineSubCategory = getValueViaPath( - application.answers, - 'machine.aboutMachine.subcategory', - '', - ) as string - const fromService = getValueViaPath( - application.answers, - 'machine.aboutMachine.fromService', - false, - ) as boolean + const { + machineParentCategories, + machineType, + machineModel, + machineCategory, + machineSubCategory, + fromService, + categoriesFromService, + } = getAboutMachineAnswers(application.answers, application.externalData) - const [category, setCategory] = useState(machineCategory) - const [subCategory, setSubCategory] = useState(machineSubCategory) + const [category, setCategory] = useState({ + nameIs: machineCategory.nameIs, + nameEn: machineCategory.nameEn, + }) + const [subCategory, setSubCategory] = useState({ + nameIs: machineSubCategory.nameIs, + nameEn: machineSubCategory.nameEn, + }) const [subCategories, setSubCategories] = useState< - { subCat: string; registrationNumberPrefix: string }[] + { subCat: CategoryType; registrationNumberPrefix: string }[] >([]) const [registrationNumberPrefix, setRegistrationNumberPrefix] = useState( @@ -65,7 +52,8 @@ export const AboutMachine: FC> = ( ) as string, ) const [subCategoryDisabled, setSubCategoryDisabled] = useState( - fromService || (!fromService && !subCategory.length), + (fromService && categoriesFromService.length === 1) || + (!fromService && !subCategory.nameIs.length), ) const [type, setType] = useState(machineType) const [model, setModel] = useState(machineModel) @@ -77,9 +65,16 @@ export const AboutMachine: FC> = ( setSubCategoryDisabled(false) setSubCategories( result.getMachineSubCategories.map( - (subCat: { name: string; registrationNumberPrefix: string }) => { + (subCat: { + name: string + nameEn: string + registrationNumberPrefix: string + }) => { return { - subCat: subCat.name, + subCat: { + nameIs: subCat.name, + nameEn: subCat.nameEn, + }, registrationNumberPrefix: subCat.registrationNumberPrefix, } }, @@ -89,18 +84,28 @@ export const AboutMachine: FC> = ( }, }) - const setCategoryValue = (value: string) => { - setSubCategory('') + const setCategoryValue = (value: CategoryType) => { + setSubCategory({ nameIs: '', nameEn: '' }) setSubCategoryDisabled(true) - setCategory(value) + setCategory({ nameIs: value.nameIs, nameEn: value.nameEn }) + } + + const setDisabledCategoryValue = (value: CategoryType) => { + const newCategory = categoriesFromService.find( + (category) => category.subcategoryIs === value.nameIs, + ) + setCategory({ + nameIs: newCategory?.categoryIs ?? '', + nameEn: newCategory?.categoryEn ?? '', + }) } useEffect(() => { // Call subcategory - if (category.length && !fromService) { + if (category.nameIs.length && !fromService) { runQuery({ variables: { - parentCategory: category, + parentCategory: category.nameIs, }, }) } @@ -110,8 +115,8 @@ export const AboutMachine: FC> = ( if ( type.length === 0 || model.length === 0 || - category.length === 0 || - subCategory.length === 0 + category.nameIs.length === 0 || + subCategory.nameIs.length === 0 ) { setDisplayError(true) return [false, ''] @@ -167,20 +172,36 @@ export const AboutMachine: FC> = ( label={formatMessage( machine.labels.basicMachineInformation.category, )} - options={machineParentCategories.map(({ name }) => { - return { value: name, label: name } + options={machineParentCategories.map(({ name, nameEn }) => { + return { + value: { nameIs: name, nameEn: nameEn }, + label: lang === 'is' ? name : nameEn, + } })} onChange={(option) => { onChange(option?.value) - option && setCategoryValue(option.value) + option && + setCategoryValue({ + nameIs: option.value.nameIs ?? '', + nameEn: option.value.nameEn ?? '', + }) }} value={ - category ? { value: category, label: category } : undefined + category + ? { + value: { + nameIs: category.nameIs, + nameEn: category.nameEn, + }, + label: + lang === 'is' ? category.nameIs : category.nameEn, + } + : undefined } backgroundColor="blue" isDisabled={fromService} required - hasError={displayError && category.length === 0} + hasError={displayError && category.nameIs.length === 0} errorMessage={formatMessage(coreErrorMessages.defaultError)} /> ) @@ -198,31 +219,59 @@ export const AboutMachine: FC> = ( machine.labels.basicMachineInformation.subcategory, )} options={ - fromService && subCategory - ? [{ value: subCategory, label: subCategory }] + fromService && categoriesFromService.length + ? categoriesFromService.map( + ({ subcategoryEn, subcategoryIs }) => { + return { + value: { + nameIs: subcategoryIs, + nameEn: subcategoryEn, + }, + label: + lang === 'is' ? subcategoryIs : subcategoryEn, + } + }, + ) : subCategories.map((cat) => { return { - value: cat.subCat, - label: cat.subCat, + value: { + nameIs: cat.subCat.nameIs, + nameEn: cat.subCat.nameEn, + }, + label: + lang === 'is' + ? cat.subCat.nameIs + : cat.subCat.nameEn, } }) } isLoading={loading} isDisabled={subCategoryDisabled} - value={{ value: subCategory ?? '', label: subCategory ?? '' }} + value={{ + value: { + nameIs: subCategory.nameIs, + nameEn: subCategory.nameEn, + }, + label: + lang === 'is' ? subCategory.nameIs : subCategory.nameEn, + }} onChange={(option) => { onChange(option?.value) option && setSubCategory(option.value) option && setRegistrationNumberPrefix( subCategories.find( - ({ subCat }) => subCat === option.value, + ({ subCat }) => subCat.nameIs === option.value.nameIs, )?.registrationNumberPrefix ?? '', ) + fromService && + categoriesFromService.length && + option && + setDisabledCategoryValue(option.value) }} backgroundColor="blue" required - hasError={displayError && subCategory.length === 0} + hasError={displayError && subCategory.nameIs.length === 0} errorMessage={formatMessage(coreErrorMessages.defaultError)} /> ) diff --git a/libs/application/templates/aosh/register-new-machine/src/fields/MachineType/index.tsx b/libs/application/templates/aosh/register-new-machine/src/fields/MachineType/index.tsx index 1ecb1eaa1819..72d4dd7c1837 100644 --- a/libs/application/templates/aosh/register-new-machine/src/fields/MachineType/index.tsx +++ b/libs/application/templates/aosh/register-new-machine/src/fields/MachineType/index.tsx @@ -129,14 +129,60 @@ export const MachineType: FC> = ( console.error('Could not get machine category', e) } - const category = - response?.getMachineParentCategoryByTypeAndModel?.name ?? '' - const subcategory = - response?.getMachineParentCategoryByTypeAndModel?.subCategoryName ?? '' + const categoryIs = + response?.getMachineParentCategoryByTypeAndModel[0]?.name ?? '' + const categoryEn = + response?.getMachineParentCategoryByTypeAndModel[0]?.nameEn ?? categoryIs + const subcategoryIs = + response?.getMachineParentCategoryByTypeAndModel[0]?.subCategoryName ?? '' + const subcategoryEn = + response?.getMachineParentCategoryByTypeAndModel[0]?.subCategoryNameEn ?? + subcategoryIs const registrationNumberPrefix = - response?.getMachineParentCategoryByTypeAndModel + response?.getMachineParentCategoryByTypeAndModel[0] ?.registrationNumberPrefix ?? '' + const categories = response?.getMachineParentCategoryByTypeAndModel?.map( + ( + { + name, + nameEn, + subCategoryName, + subCategoryNameEn, + registrationNumberPrefix, + }, + index, + ) => { + setValue( + `machine.aboutMachine.subcategories[${index}].categoryIs`, + name, + ) + setValue( + `machine.aboutMachine.subcategories[${index}].categoryEn`, + nameEn, + ) + setValue( + `machine.aboutMachine.subcategories[${index}].subcategoryIs`, + subCategoryName, + ) + setValue( + `machine.aboutMachine.subcategories[${index}].subcategoryEn`, + subCategoryNameEn, + ) + setValue( + `machine.aboutMachine.subcategories[${index}].registrationNumberPrefix`, + registrationNumberPrefix, + ) + return { + categoryIs: name ?? '', + categoryEn: nameEn ?? name ?? '', + subcategoryIs: subCategoryName ?? '', + subcategoryEn: subCategoryNameEn ?? subCategoryName ?? '', + registrationNumberPrefix: registrationNumberPrefix ?? '', + } + }, + ) + setValue( 'machine.aboutMachine.type', type && type !== 'unknown' ? type : '', @@ -145,15 +191,17 @@ export const MachineType: FC> = ( 'machine.aboutMachine.model', model && model !== 'unknown' ? model : '', ) - setValue('machine.aboutMachine.category', category) - setValue('machine.aboutMachine.subcategory', subcategory) + setValue('machine.aboutMachine.category.nameIs', categoryIs) + setValue('machine.aboutMachine.category.nameEn', categoryEn) + setValue('machine.aboutMachine.subcategory.nameIs', subcategoryIs) + setValue('machine.aboutMachine.subcategory.nameEn', subcategoryEn) setValue( 'machine.aboutMachine.registrationNumberPrefix', registrationNumberPrefix, ) setValue( 'machine.aboutMachine.fromService', - !!(category.length && subcategory.length), + !!(categoryIs.length && categories), ) const res = await updateApplication({ variables: { @@ -165,10 +213,17 @@ export const MachineType: FC> = ( aboutMachine: { type: type && type !== 'unknown' ? type : '', model: model && model !== 'unknown' ? model : '', - category, - subcategory, + category: { + nameIs: categoryIs, + nameEn: categoryEn, + }, + categories: categories, + subcategory: { + nameIs: subcategoryIs, + nameEn: subcategoryEn, + }, registrationNumberPrefix: registrationNumberPrefix, - fromService: !!(category.length && subcategory.length), + fromService: !!(categoryIs.length && categories), }, machineType: { type: type ?? '', diff --git a/libs/application/templates/aosh/register-new-machine/src/fields/Overview/index.tsx b/libs/application/templates/aosh/register-new-machine/src/fields/Overview/index.tsx index 515a21d290d3..5ece0ad7bf53 100644 --- a/libs/application/templates/aosh/register-new-machine/src/fields/Overview/index.tsx +++ b/libs/application/templates/aosh/register-new-machine/src/fields/Overview/index.tsx @@ -4,7 +4,7 @@ import { FieldTypes, } from '@island.is/application/types' import { FC } from 'react' -import { AlertMessage, Box } from '@island.is/island-ui/core' +import { Box } from '@island.is/island-ui/core' import { useLocale } from '@island.is/localization' import { ReviewGroup } from '../components/ReviewGroup' import { KeyValueFormField } from '@island.is/application/ui-fields' @@ -15,7 +15,6 @@ import { overview, } from '../../lib/messages' import { - canMaybeRegisterToTraffic, canRegisterToTraffic, getBasicMachineInformation, getPersonInformationForOverview, @@ -29,7 +28,7 @@ export const Overview: FC> = ({ ...props }) => { const { application, goToScreen } = props - const { formatMessage } = useLocale() + const { formatMessage, lang } = useLocale() const onClick = (page: string) => { if (goToScreen) goToScreen(page) @@ -115,6 +114,7 @@ export const Overview: FC> = ({ value: getBasicMachineInformation( application.answers, formatMessage, + lang, ), }} /> @@ -133,7 +133,11 @@ export const Overview: FC> = ({ component: FieldComponents.KEY_VALUE, title: '', label: machine.labels.technicalMachineInformation.overviewTitle, - value: getTechnicalInformation(application.answers, formatMessage), + value: getTechnicalInformation( + application.answers, + formatMessage, + lang, + ), }} /> diff --git a/libs/application/templates/aosh/register-new-machine/src/fields/TechnicalInfo/ListItemField.tsx b/libs/application/templates/aosh/register-new-machine/src/fields/TechnicalInfo/ListItemField.tsx new file mode 100644 index 000000000000..f78191b5cc8c --- /dev/null +++ b/libs/application/templates/aosh/register-new-machine/src/fields/TechnicalInfo/ListItemField.tsx @@ -0,0 +1,57 @@ +import { Box, Select } from '@island.is/island-ui/core' +import { FC } from 'react' +import { useLocale } from '@island.is/localization' +import { Controller } from 'react-hook-form' + +export type ListItemFieldType = { + label: string + required: boolean | undefined + fieldId: string + options: { + value: { + nameIs: string + nameEn: string + } + label: string + }[] +} + +export const ListItemField: FC> = ( + props, +) => { + const { fieldId, label, options, required } = props + const { lang } = useLocale() + + return ( + + { + return ( + { id: 'header2', title: m.informationSpouse2, titleVariant: 'h4', - space: 'gutter', + space: 'containerGutter', }), buildAlertMessageField({ id: 'alert', @@ -225,7 +225,7 @@ export const getApplication = ({ allowFakeData = false }): Form => { readOnly: true, defaultValue: (application: Application) => { const status = application.externalData.maritalStatus - .data as any + .data as { maritalStatus: string } return status.maritalStatus }, }), @@ -292,6 +292,10 @@ export const getApplication = ({ allowFakeData = false }): Form => { placeholder: m.ceremonyDatePlaceholder, width: 'half', minDate: new Date(), + // max date is set to 12 weeks from now + maxDate: new Date( + new Date().setDate(new Date().getDate() + 12 * 7), + ), condition: (answers) => getValueViaPath(answers, 'ceremony.hasDate') === YES, }), @@ -406,7 +410,7 @@ export const getApplication = ({ allowFakeData = false }): Form => { id: 'header4', title: m.informationWitness2, titleVariant: 'h4', - space: 'gutter', + space: 'containerGutter', }), buildCustomField({ id: 'witness2.person', diff --git a/libs/application/templates/marriage-conditions/src/forms/spouseConfirmation.ts b/libs/application/templates/marriage-conditions/src/forms/spouseConfirmation.ts index 59453e828c84..82215def35aa 100644 --- a/libs/application/templates/marriage-conditions/src/forms/spouseConfirmation.ts +++ b/libs/application/templates/marriage-conditions/src/forms/spouseConfirmation.ts @@ -247,7 +247,7 @@ export const spouseConfirmation = ({ allowFakeData = false }): Form => readOnly: true, defaultValue: (application: Application) => { const status = application.externalData.maritalStatus - .data as any + .data as { maritalStatus: string } return status.maritalStatus }, }), diff --git a/libs/application/templates/marriage-conditions/src/lib/messages.ts b/libs/application/templates/marriage-conditions/src/lib/messages.ts index 2979a7d85262..52cfdab27c85 100644 --- a/libs/application/templates/marriage-conditions/src/lib/messages.ts +++ b/libs/application/templates/marriage-conditions/src/lib/messages.ts @@ -498,7 +498,11 @@ export const m = defineMessages({ 'Kennitala hjá hjónaefni 2 má ekki vera sú sama og hjá hjónaefni 1', description: '', }, - + nationalIdWitnessUnderageError: { + id: 'mac.application:nationalIdWitnessUnderageError', + defaultMessage: 'Svaramaður þarf að hafa náð 18 ára aldri', + description: '', + }, /* History logs */ waitingForConfirmationSpouse2Title: { id: 'pa.application:history.waitingForConfirmationSpouse2Title', diff --git a/libs/application/types/src/lib/ApplicationTypes.ts b/libs/application/types/src/lib/ApplicationTypes.ts index 2cae65fc3431..3b154b43b4d0 100644 --- a/libs/application/types/src/lib/ApplicationTypes.ts +++ b/libs/application/types/src/lib/ApplicationTypes.ts @@ -209,7 +209,7 @@ export const ApplicationConfigurations = { }, [ApplicationTypes.FINANCIAL_STATEMENT_CEMETERY]: { slug: 'skil-arsreikninga-kirkjugardar', - translation: 'fsck.application', + translation: 'fsc.application', }, [ApplicationTypes.FINANCIAL_STATEMENTS_INAO]: { slug: 'skilarsreikninga', diff --git a/libs/application/ui-shell/src/components/FormExternalDataProvider.tsx b/libs/application/ui-shell/src/components/FormExternalDataProvider.tsx index f0df2dd44771..2857203a8c61 100644 --- a/libs/application/ui-shell/src/components/FormExternalDataProvider.tsx +++ b/libs/application/ui-shell/src/components/FormExternalDataProvider.tsx @@ -8,6 +8,7 @@ import { Checkbox, Icon, Text, + InputError, } from '@island.is/island-ui/core' import { Markdown } from '@island.is/shared/components' import { @@ -327,30 +328,32 @@ const FormExternalDataProvider: FC< rules={{ required: true }} render={({ field: { onChange, value } }) => { return ( - { - const isChecked = e.target.checked - clearErrors(id) - setValue(id as string, isChecked) - onChange(isChecked) - activateBeforeSubmitCallback(isChecked) - }} - checked={value} - hasError={error !== undefined} - errorMessage={id ? (errors[id] as string) : undefined} - backgroundColor="blue" - dataTestId="agree-to-data-providers" - name={`${id}`} - label={ - - {checkboxLabel - ? formatMessage(checkboxLabel) - : formatMessage(coreMessages.externalDataAgreement)} - - } - value={id} - /> + <> + { + const isChecked = e.target.checked + clearErrors(id) + setValue(id as string, isChecked) + onChange(isChecked) + activateBeforeSubmitCallback(isChecked) + }} + checked={value} + hasError={error !== undefined} + backgroundColor="blue" + dataTestId="agree-to-data-providers" + name={`${id}`} + label={ + + {checkboxLabel + ? formatMessage(checkboxLabel) + : formatMessage(coreMessages.externalDataAgreement)} + + } + value={id} + /> + {error && } + ) }} /> diff --git a/libs/application/ui-shell/src/validation/resolver.ts b/libs/application/ui-shell/src/validation/resolver.ts index 16b48fb4ea1f..55842c720bea 100644 --- a/libs/application/ui-shell/src/validation/resolver.ts +++ b/libs/application/ui-shell/src/validation/resolver.ts @@ -1,10 +1,13 @@ import { validateAnswers } from '@island.is/application/core' -import { FormValue } from '@island.is/application/types' +import { FormNode, FormValue } from '@island.is/application/types' import { FormatMessage } from '@island.is/localization' import { ResolverError, ResolverResult } from 'react-hook-form' - import { ResolverContext } from '../types' +// Get all field id's from the provided form node +const getFormNodeFieldIds = (formNode: FormNode) => + formNode?.children?.filter((x) => x.id).map((x) => x.id as string) ?? [] + type Resolver = ({ formValue, context, @@ -29,6 +32,7 @@ export const resolver: Resolver = ({ formValue, context, formatMessage }) => { dataSchema: context.dataSchema, answers: formValue, isFullSchemaValidation: false, + currentScreenFields: getFormNodeFieldIds(context.formNode), formatMessage, }) diff --git a/libs/clients/syslumenn/project.json b/libs/clients/syslumenn/project.json index 8303e1590a13..f782d674d7b3 100644 --- a/libs/clients/syslumenn/project.json +++ b/libs/clients/syslumenn/project.json @@ -19,7 +19,7 @@ "executor": "nx:run-commands", "options": { "commands": [ - "curl https://api.syslumenn.is/staging/swagger/v1/swagger.json -H 'Accept: application/json' | jq '.paths[][].tags = [\"Syslumenn\"]' > src/clientConfig.json" + "curl https://api.syslumenn.is/staging/swagger/v1/swagger.json -H 'Accept: application/json' | jq '.paths[][].tags = [\"Syslumenn\"]' | jq '(.. | objects | select(has(\"application/json\")) | .[\"application/json\"].schema) |= if has(\"items\") and .items == {} then .items = {\"type\": \"object\"} else . end' | jq '(.components[][] | select(has(\"additionalProperties\")) | select(.additionalProperties|objects) | .additionalProperties) |= if has(\"nullable\") and .nullable == true then (.type = \"object\") else . end' | jq '(.components[][] | objects | select(has(\"properties\")) | .properties | .[]) |= if has(\"items\") and .items == {} then .items = {\"type\": \"object\"} else . end' > src/clientConfig.json" ], "parallel": false, "cwd": "libs/clients/syslumenn" diff --git a/libs/clients/syslumenn/src/clientConfig.json b/libs/clients/syslumenn/src/clientConfig.json index 3c6ac47e291a..1fea89288dcd 100644 --- a/libs/clients/syslumenn/src/clientConfig.json +++ b/libs/clients/syslumenn/src/clientConfig.json @@ -1,44 +1,48 @@ { "x-generator": "NSwag v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))", - "swagger": "2.0", + "openapi": "3.0.0", "info": { "title": "Þjónustugátt starfskerfa sýslumanna", "description": "Rafrænn aðgengi að gögnum og aðgerðum starfskerfis sýslumanna", "version": "v1" }, - "host": "api.syslumenn.is", - "basePath": "/staging", - "schemes": ["https"], - "produces": ["text/plain", "application/json", "text/json"], + "servers": [ + { + "url": "https://api.syslumenn.is/staging" + } + ], "paths": { "/v1/Innskraning": { "post": { "tags": ["Syslumenn"], "operationId": "Innskraning_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "notandi", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ApiNotandi" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "notandi", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiNotandi" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/InnskraningSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InnskraningSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -49,19 +53,22 @@ "operationId": "Postnumer_GetPostnumerAll", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Postnumer" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Postnumer" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -72,40 +79,51 @@ "operationId": "Postnumer_GetPostnumer", "parameters": [ { - "type": "integer", "name": "id", "in": "path", "required": true, - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/Postnumer" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Postnumer" + } + } } }, "404": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -114,27 +132,30 @@ "post": { "tags": ["Syslumenn"], "operationId": "SkraSveinsbref_CreateSveinsbref", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "sveinsbrefList", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/SkraSveinsbrefModel" + "requestBody": { + "x-name": "sveinsbrefList", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkraSveinsbrefModel" + } } - }, - "x-nullable": false - } - ], + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/NyskraAdfaraBeidniSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NyskraAdfaraBeidniSvar" + } + } } }, "401": { @@ -143,7 +164,7 @@ }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -154,21 +175,26 @@ "operationId": "Sveinsbref_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/SveinsbrefModel" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SveinsbrefModel" + } + } } } }, @@ -181,7 +207,7 @@ }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -192,19 +218,22 @@ "operationId": "AdfarabeidnirHeimildaflokkur_GetAdfarabeidnirHeimildaflokkurAll", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/AdfarabeidnirHeimildaflokkur" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AdfarabeidnirHeimildaflokkur" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -215,40 +244,51 @@ "operationId": "AdfarabeidnirHeimildaflokkur_GetAdfarabeidnirHeimildaflokkur", "parameters": [ { - "type": "integer", "name": "id", "in": "path", "required": true, - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/AdfarabeidnirHeimildaflokkur" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdfarabeidnirHeimildaflokkur" + } + } } }, "404": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -259,19 +299,22 @@ "operationId": "Embaetti_GetEmbaettiAll", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Embaetti" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Embaetti" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -282,40 +325,51 @@ "operationId": "Embaetti_GetEmbaetti", "parameters": [ { - "type": "integer", "name": "id", "in": "path", "required": true, - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/Embaetti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Embaetti" + } + } } }, "404": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -326,19 +380,22 @@ "operationId": "EmbaettiOgStarfsstodvar_GetEmbaetti", "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/EmbaettiOgStarfsstodvar" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmbaettiOgStarfsstodvar" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -349,53 +406,69 @@ "operationId": "Okutaeki_Get", "parameters": [ { - "type": "string", "name": "fastanumer", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/Okutaeki" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Okutaeki" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -406,42 +479,53 @@ "operationId": "Uppbod_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Uppbod" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Uppbod" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -452,12 +536,15 @@ "operationId": "IdngreinarMeistara_Get", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "type": "string" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } }, @@ -467,7 +554,7 @@ }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -478,48 +565,62 @@ "operationId": "Logradamadur_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/LogradamadurSvar" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LogradamadurSvar" + } + } } } }, "500": { - "x-nullable": false, "description": "Internal server error", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -530,27 +631,33 @@ "operationId": "Logmannalisti_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Logmenn" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Logmenn" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -561,42 +668,53 @@ "operationId": "Afengisleyfi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Afengisleyfi" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Afengisleyfi" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -607,42 +725,53 @@ "operationId": "Meistaraleyfi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Meistaraleyfi" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Meistaraleyfi" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -653,42 +782,53 @@ "operationId": "Starfsrettindi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/StarfsrettindiModel" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StarfsrettindiModel" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -699,42 +839,53 @@ "operationId": "Taekifaerisleyfi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Taekifaerisleyfi" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Taekifaerisleyfi" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -745,62 +896,80 @@ "operationId": "VirkLeyfi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "SearchBy", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 }, { - "type": "integer", "name": "PageNumber", "in": "query", - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 3 }, { - "type": "integer", "name": "PageSize", "in": "query", - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 4 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/VirkLeyfi" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirkLeyfi" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -811,39 +980,50 @@ "operationId": "VirkLeyfiCsv_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "string" + "content": { + "application/json": { + "schema": { + "type": "string" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -854,62 +1034,80 @@ "operationId": "VirkLeyfiMedFastanumerum_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "SearchBy", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 }, { - "type": "integer", "name": "PageNumber", "in": "query", - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 3 }, { - "type": "integer", "name": "PageSize", "in": "query", - "format": "int32", - "x-nullable": false + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 4 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/VirkLeyfiMedfastanumer" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirkLeyfiMedfastanumer" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -918,47 +1116,57 @@ "put": { "tags": ["Syslumenn"], "operationId": "Heimagistingar_Put", - "consumes": ["application/json", "text/json", "application/*+json"], "parameters": [ { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/UppfaeraHeimagistingarModel" - }, - "x-nullable": false - }, - { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UppfaeraHeimagistingarModel" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] }, @@ -967,42 +1175,53 @@ "operationId": "Heimagistingar_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/HeimagistingarModel" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HeimagistingarModel" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1013,42 +1232,53 @@ "operationId": "VirkarHeimagistingar_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/VirkarHeimagistingar" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirkarHeimagistingar" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1059,49 +1289,62 @@ "operationId": "VirkarHeimagistingar_Get2", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "ar", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/VirkarHeimagistingar" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirkarHeimagistingar" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1110,37 +1353,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "ArangurslausFraDags_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AranuslausFyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AranuslausFyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/AranuslausSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AranuslausSvar" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1149,37 +1398,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "NyskraAdfaraBeidni_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NyskraAdfaraBeidniSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NyskraAdfaraBeidniSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/NyskraAdfaraBeidniSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NyskraAdfaraBeidniSvar" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1190,19 +1445,22 @@ "operationId": "UppbodFaFasteignir_Get", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/UppbodFasteignir" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UppbodFasteignir" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1211,37 +1469,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "AfturkallaAdfarabeidni_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdfarabeidniSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdfarabeidniSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/NyskraAdfaraBeidniSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NyskraAdfaraBeidniSvar" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1250,37 +1514,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "ArangurslausFraTilDags_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AranuslausFratilFyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AranuslausFratilFyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/AranuslausFraTilSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AranuslausFraTilSvar" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1291,52 +1561,69 @@ "operationId": "KannaKonnunarvottord_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/KonnunarvottordSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KonnunarvottordSvar" + } + } } }, "500": { - "x-nullable": false, "description": "Internal server error", - "schema": { - "$ref": "#/definitions/KonnunarvottordSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KonnunarvottordSvar" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/KonnunarvottordSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KonnunarvottordSvar" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/KonnunarvottordSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KonnunarvottordSvar" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1345,37 +1632,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "BankaupplysingarDanarbus_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skeyti", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/BankaupplysingarDanarbusSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skeyti", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BankaupplysingarDanarbusSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/BankaupplysingarDanarbusSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BankaupplysingarDanarbusSkeyti" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1386,49 +1679,63 @@ "operationId": "DanarbuAlgengTengsl_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/AlgengTengsl" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlgengTengsl" + } + } } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1439,49 +1746,63 @@ "operationId": "DanarbuAlgengTengslUmsaekjanda_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/AlgengUmsaekjandaTengsl" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlgengUmsaekjandaTengsl" + } + } } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1492,52 +1813,69 @@ "operationId": "Erfdafjarskattur_Get", "parameters": [ { - "type": "string", "name": "malsnumer", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/ErfdafjarskatturSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErfdafjarskatturSvar" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1546,51 +1884,63 @@ "post": { "tags": ["Syslumenn"], "operationId": "SkiptaUmSkraningaradilaDanarbus_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SkiptaUmSkraningaradili" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SkiptaUmSkraningaradili" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/SkiptaUmSkraningaradiliSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SkiptaUmSkraningaradiliSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1601,56 +1951,72 @@ "operationId": "SkraningaradiliDanarbus_Get", "parameters": [ { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/SkraningaradiliDanarbusSkeyti" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkraningaradiliDanarbusSkeyti" + } + } } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1659,51 +2025,63 @@ "post": { "tags": ["Syslumenn"], "operationId": "UpplysingarRadstofunDanarbus_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "fyrirspurn", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Fyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "fyrirspurn", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Fyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/UpplysingarUrDanarbuiRadstofunSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpplysingarUrDanarbuiRadstofunSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1712,51 +2090,63 @@ "post": { "tags": ["Syslumenn"], "operationId": "UpplysingarUrDanarbui_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "fyrirspurn", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Fyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "fyrirspurn", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Fyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/UpplysingarUrDanarbuiSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpplysingarUrDanarbuiSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1765,51 +2155,63 @@ "post": { "tags": ["Syslumenn"], "operationId": "UpplysingarUrDanarbuiErfdafjarskatt_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "fyrirspurn", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Fyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "fyrirspurn", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Fyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/UpplysingarUrDanarbuiSkeytiErfdafjarskatt" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpplysingarUrDanarbuiSkeytiErfdafjarskatt" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1818,40 +2220,46 @@ "post": { "tags": ["Syslumenn"], "operationId": "YfirlitUmFramvinduSkipta_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "fyrirspurn", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Fyrirspurn" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "fyrirspurn", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Fyrirspurn" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1862,27 +2270,33 @@ "operationId": "Fasteignasalar_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Fasteignasalar" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Fasteignasalar" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1893,53 +2307,68 @@ "operationId": "AlmennFyrirspurn_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "eining", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 }, { - "type": "string", "name": "adgerd", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 3 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "string" + "content": { + "application/json": { + "schema": { + "type": "string" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -1950,53 +2379,69 @@ "operationId": "EinstaklingaSkra_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/ThjoldskraEnstaklingar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ThjoldskraEnstaklingar" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2007,53 +2452,69 @@ "operationId": "ErfdarskraJaNei_Get", "parameters": [ { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/ErfdarskraSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErfdarskraSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2064,32 +2525,39 @@ "operationId": "FaVottordUpplysingar_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/VottordSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VottordSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2098,30 +2566,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "InnsiglaSkjol_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skeyti", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/InnsiglaSkjolSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skeyti", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InnsiglaSkjolSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/InnsigludSkjol" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InnsigludSkjol" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2130,30 +2601,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "Innsiglun_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skeyti", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/InnsiglaSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skeyti", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InnsiglaSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/SvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2164,60 +2638,78 @@ "operationId": "KannaRafraenSkilriki_Get", "parameters": [ { - "type": "string", "name": "simi", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 3 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/KannaRafraenSkilrikiSimiKennitala" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KannaRafraenSkilrikiSimiKennitala" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2228,53 +2720,69 @@ "operationId": "KannaRafraenSkilriki_Get2", "parameters": [ { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/KannaRafraenSkilrikiKennitala" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KannaRafraenSkilrikiKennitala" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2285,18 +2793,22 @@ "operationId": "KannaSakavottord_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { @@ -2304,23 +2816,29 @@ "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2331,53 +2849,69 @@ "operationId": "KaupmaliJaNei_Get", "parameters": [ { - "type": "string", "name": "kennitala", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/KaupmaliSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KaupmaliSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2386,37 +2920,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "LeitaAdKennitoluIThjodskra_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skeyti", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ThjodskraSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skeyti", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ThjodskraSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ThjodskraSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ThjodskraSvarSkeyti" + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2427,53 +2967,69 @@ "operationId": "Logadilaskra_Get", "parameters": [ { - "type": "string", "name": "kennitalaEdaNafnEdaHeimlisfang", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/ThjodskraLogadilar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ThjodskraLogadilar" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2482,40 +3038,46 @@ "post": { "tags": ["Syslumenn"], "operationId": "MottakaRafraentSkjal_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WebhookEventPayload" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookEventPayload" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2524,40 +3086,46 @@ "post": { "tags": ["Syslumenn"], "operationId": "MottakaSkjalaUrUndirritun_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/WebhookEventPayload" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookEventPayload" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2568,59 +3136,68 @@ "operationId": "Ping_Get", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "type": "string" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] }, "post": { "tags": ["Syslumenn"], "operationId": "Ping_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Skilabod" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Skilabod" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2631,37 +3208,49 @@ "operationId": "RettindiFyrirIslandIs_Get", "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/LeyfiListi" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiListi" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/LeyfiListi" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiListi" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/LeyfiListi" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiListi" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/LeyfiListi" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiListi" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2672,52 +3261,69 @@ "operationId": "RettindiFyrirIslandIs_GetStakt", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 }, { - "type": "string", "name": "locale", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 2 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/LeyfiStakt" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiStakt" + } + } } }, "404": { - "x-nullable": false, "description": "Not found", - "schema": { - "$ref": "#/definitions/LeyfiStakt" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiStakt" + } + } } }, "400": { - "x-nullable": false, "description": "Bad request", - "schema": { - "$ref": "#/definitions/LeyfiStakt" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiStakt" + } + } } }, "401": { - "x-nullable": false, "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/LeyfiStakt" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LeyfiStakt" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2728,40 +3334,53 @@ "operationId": "SamkynjaTolfraedi_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": {} + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object" + } + } + } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2770,30 +3389,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "SkraMottakaGogn_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyslSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyslSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/Skilabod" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Skilabod" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2802,30 +3424,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "StadaUndirritunarSkjals_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StadaUndirritunarSkjalsSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StadaUndirritunarSkjalsSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/StadaUndirritunarSkjalsSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StadaUndirritunarSkjalsSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2836,31 +3461,40 @@ "operationId": "StaediskortaMal_GetStaediskort", "parameters": [ { - "type": "string", "name": "kennitala", "in": "query", - "x-nullable": true + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/StaediskortamalSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StaediskortamalSvarSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "NotFound", - "schema": { - "$ref": "#/definitions/StaediskortamalSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StaediskortamalSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2871,23 +3505,29 @@ "operationId": "StaediskortaMal_GetStaediskortToken", "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/Staediskortamal" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Staediskortamal" + } + } } }, "404": { - "x-nullable": false, "description": "NotFound", - "schema": { - "$ref": "#/definitions/Staediskortamal" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Staediskortamal" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2896,30 +3536,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "StofnaskjalOgSendaTilUndirritunar_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/StofnaskjalOgSendaTilUndirritunarSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StofnaskjalOgSendaTilUndirritunarSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/StofnaskjalOgSendaTilUndirritunarSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StofnaskjalOgSendaTilUndirritunarSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2928,30 +3571,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "SyslMottakaGogn_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyslSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyslSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/Skilabod" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Skilabod" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2960,30 +3606,33 @@ "post": { "tags": ["Syslumenn"], "operationId": "SyslMottakaVilluprofaGogn_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyslSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyslSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/Skilabod" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Skilabod" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -2992,40 +3641,46 @@ "post": { "tags": ["Syslumenn"], "operationId": "SyslSaekjaSkra_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "payload", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SyslSekjaSkra" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "payload", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyslSekjaSkra" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { "description": "" }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -3034,37 +3689,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "Vedbokarvottord2_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/VedbandayfirlitMargirSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitMargirSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/VedbandayfirlitMargirSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitMargirSvarSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "NotFound", - "schema": { - "$ref": "#/definitions/VedbandayfirlitMargirSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitMargirSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -3073,37 +3734,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "Vedbokarvottord_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/VedbandayfirlitSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/VedbandayfirlitSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitSvarSkeyti" + } + } } }, "404": { - "x-nullable": false, "description": "NotFound", - "schema": { - "$ref": "#/definitions/VedbandayfirlitSvarSkeyti" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitSvarSkeyti" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -3112,37 +3779,43 @@ "post": { "tags": ["Syslumenn"], "operationId": "VedbokavottordRegluverki_Post", - "consumes": ["application/json", "text/json", "application/*+json"], - "parameters": [ - { - "name": "skilabod", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/VedbandayfirlitSkeyti" - }, - "x-nullable": false - } - ], + "requestBody": { + "x-name": "skilabod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitSkeyti" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { "200": { - "x-nullable": false, "description": "Success", - "schema": { - "$ref": "#/definitions/VedbandayfirlitRegluverkGeneralSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitRegluverkGeneralSvar" + } + } } }, "404": { - "x-nullable": false, "description": "NotFound", - "schema": { - "$ref": "#/definitions/VedbandayfirlitRegluverkGeneralSvar" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VedbandayfirlitRegluverkGeneralSvar" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -3153,42 +3826,53 @@ "operationId": "Verdbrefamidlarar_Get", "parameters": [ { - "type": "string", "name": "audkenni", "in": "path", "required": true, - "x-nullable": false + "schema": { + "type": "string" + }, + "x-position": 1 } ], "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Verdbrefamidlari" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Verdbrefamidlari" + } + } } } }, "401": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } }, "default": { - "x-nullable": false, "description": "", - "schema": { - "$ref": "#/definitions/ProblemDetails" + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProblemDetails" + } + } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } @@ -3199,3320 +3883,4078 @@ "operationId": "Version_Get", "responses": { "200": { - "x-nullable": false, "description": "", - "schema": { - "type": "array", - "items": { - "type": "string" + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } }, "security": [ { - "JWT Token": [] + "JWTToken": [] } ] } } }, - "definitions": { - "InnskraningSvarSkeyti": { - "type": "object", - "properties": { - "skilabod": { - "type": "string" - }, - "audkenni": { - "type": "string" - }, - "accessToken": { - "type": "string" - } - } - }, - "ApiNotandi": { - "type": "object", - "properties": { - "notandi": { - "type": "string", - "minLength": 4 - }, - "lykilord": { - "type": "string", - "minLength": 9 + "components": { + "schemas": { + "InnskraningSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "skilabod": { + "type": "string", + "nullable": true + }, + "audkenni": { + "type": "string", + "nullable": true + }, + "accessToken": { + "type": "string", + "nullable": true + } } - } - }, - "Postnumer": { - "type": "object", - "required": ["oid"], - "properties": { - "oid": { - "type": "integer", - "format": "int32" - }, - "numer": { - "type": "string" - }, - "heiti": { - "type": "string" - }, - "stadur": { - "type": "string" - }, - "optimisticLockField": { - "type": "integer", - "format": "int32" - }, - "gcrecord": { - "type": "integer", - "format": "int32" + }, + "ApiNotandi": { + "type": "object", + "additionalProperties": false, + "properties": { + "notandi": { + "type": "string", + "minLength": 4, + "nullable": true + }, + "lykilord": { + "type": "string", + "minLength": 9, + "nullable": true + } } - } - }, - "ProblemDetails": { - "type": "object", - "additionalProperties": {}, - "properties": { - "type": { - "type": "string" - }, - "title": { - "type": "string" - }, - "status": { - "type": "integer", - "format": "int32" - }, - "detail": { - "type": "string" - }, - "instance": { - "type": "string" + }, + "Postnumer": { + "type": "object", + "additionalProperties": false, + "properties": { + "oid": { + "type": "integer", + "format": "int32" + }, + "numer": { + "type": "string", + "nullable": true + }, + "heiti": { + "type": "string", + "nullable": true + }, + "stadur": { + "type": "string", + "nullable": true + }, + "optimisticLockField": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "gcrecord": { + "type": "integer", + "format": "int32", + "nullable": true + } } - } - }, - "NyskraAdfaraBeidniSvar": { - "type": "object", - "properties": { - "audkenniSvars": { - "type": "string" - }, - "malsnumer": { - "type": "string" - }, - "texti": { - "type": "string" + }, + "ProblemDetails": { + "type": "object", + "additionalProperties": { + "nullable": true, + "type": "object" + }, + "properties": { + "type": { + "type": "string", + "nullable": true + }, + "title": { + "type": "string", + "nullable": true + }, + "status": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "detail": { + "type": "string", + "nullable": true + }, + "instance": { + "type": "string", + "nullable": true + } } - } - }, - "SkraSveinsbrefModel": { - "type": "object", - "required": ["stadidFallid"], - "properties": { - "audkenni": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "idngrein": { - "type": "string" - }, - "profstadur": { - "type": "string" - }, - "dagSveinsprof": { - "type": "string" - }, - "burtfaraskyrteiniFra": { - "type": "string" - }, - "dagsBurtfaraskyrteini": { - "type": "string" - }, - "dagsAfhendingarSveinsbref": { - "type": "string" - }, - "stadidFallid": { - "type": "integer", - "format": "int32" + }, + "NyskraAdfaraBeidniSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenniSvars": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "texti": { + "type": "string", + "nullable": true + } } - } - }, - "SveinsbrefModel": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "idngrein": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" + }, + "SkraSveinsbrefModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "idngrein": { + "type": "string", + "nullable": true + }, + "profstadur": { + "type": "string", + "nullable": true + }, + "dagSveinsprof": { + "type": "string", + "nullable": true + }, + "burtfaraskyrteiniFra": { + "type": "string", + "nullable": true + }, + "dagsBurtfaraskyrteini": { + "type": "string", + "nullable": true + }, + "dagsAfhendingarSveinsbref": { + "type": "string", + "nullable": true + }, + "stadidFallid": { + "type": "integer", + "format": "int32" + } } - } - }, - "AdfarabeidnirHeimildaflokkur": { - "type": "object", - "required": ["numer"], - "properties": { - "numer": { - "type": "integer", - "format": "int32" - }, - "heiti": { - "type": "string" + }, + "SveinsbrefModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "idngrein": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time", + "nullable": true + } } - } - }, - "Embaetti": { - "type": "object", - "required": ["numer"], - "properties": { - "numer": { - "type": "integer", - "format": "int32" - }, - "heiti": { - "type": "string" - }, - "kennitala": { - "type": "string" + }, + "AdfarabeidnirHeimildaflokkur": { + "type": "object", + "additionalProperties": false, + "properties": { + "numer": { + "type": "integer", + "format": "int32" + }, + "heiti": { + "type": "string", + "nullable": true + } } - } - }, - "EmbaettiOgStarfsstodvar": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "stadur": { - "type": "string" - }, - "adsetur": { - "type": "string" - }, - "starfsstodID": { - "type": "string" + }, + "Embaetti": { + "type": "object", + "additionalProperties": false, + "properties": { + "numer": { + "type": "integer", + "format": "int32" + }, + "heiti": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + } } - } - }, - "Okutaeki": { - "type": "object", - "required": ["skraningardagur", "skraningardagurEiganda"], - "properties": { - "numerOkutaekis": { - "type": "string" - }, - "fastanumerOkutaekis": { - "type": "string" - }, - "framleidandi": { - "type": "string" - }, - "framleidandaGerd": { - "type": "string" - }, - "litur": { - "type": "string" - }, - "skraning": { - "type": "string" - }, - "nafnEiganda": { - "type": "string" - }, - "kennitalaEiganda": { - "type": "string" - }, - "heimilisfangEiganda": { - "type": "string" - }, - "skraningardagur": { - "type": "string", - "format": "date-time" - }, - "skraningardagurEiganda": { - "type": "string", - "format": "date-time" - } - } - }, - "Uppbod": { - "type": "object", - "properties": { - "embaetti": { - "type": "string" - }, - "starfsstod": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "andlag": { - "type": "string" - }, - "dagsetning": { - "type": "string", - "format": "date-time" - }, - "klukkan": { - "type": "string" - }, - "fastanumer": { - "type": "string" - }, - "andlagHeiti": { - "type": "string" - }, - "gerdarbeidendur": { - "type": "string" - }, - "gerdartholar": { - "type": "string" - }, - "lausafjarmunir": { - "type": "string" - }, - "auglysingatexti": { - "type": "string" - }, - "uppbodStadur": { - "type": "string" - } - } - }, - "LogradamadurSvar": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - } - } - }, - "Logmenn": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "tegundRettinda": { - "type": "string" - } - } - }, - "Afengisleyfi": { - "type": "object", - "properties": { - "tegund": { - "type": "string" - }, - "tegundLeyfis": { - "type": "string" - }, - "leyfisnumer": { - "type": "string" - }, - "utgefidAf": { - "type": "string" - }, - "skraningarAr": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - }, - "leyfishafi": { - "type": "string" - }, - "abyrgdarmadur": { - "type": "string" - }, - "embaetti": { - "type": "string" - }, - "starfsstodEmbaettis": { - "type": "string" - } - } - }, - "Meistaraleyfi": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "idngrein": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "embaetti": { - "type": "string" - } - } - }, - "StarfsrettindiModel": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "starfsrettindi": { - "type": "string" - } - } - }, - "Taekifaerisleyfi": { - "type": "object", - "required": [ - "gildirFra", - "gildirTil", - "hamarksfjoldi", - "aaetladurFjoldi" - ], - "properties": { - "malategund": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "tegundLeyfis": { - "type": "string" - }, - "leyfisnumer": { - "type": "string" - }, - "utgefidAf": { - "type": "string" - }, - "skraningarAr": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - }, - "leyfishafi": { - "type": "string" - }, - "abyrgdarmadur": { - "type": "string" - }, - "hamarksfjoldi": { - "type": "integer", - "format": "int32" - }, - "aaetladurFjoldi": { - "type": "integer", - "format": "int32" - }, - "stadur": { - "type": "string" - } - } - }, - "VirkLeyfi": { - "type": "object", - "required": ["rowNum"], - "properties": { - "rowNum": { - "type": "integer", - "format": "int64" - }, - "utgefidAf": { - "type": "string" - }, - "leyfisnumer": { - "type": "string" - }, - "stadur": { - "type": "string" - }, - "kallast": { - "type": "string" - }, - "gata": { - "type": "string" - }, - "postnumer": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "tegund2": { - "type": "string" - }, - "tegundVeitingastadar": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - }, - "leyfishafi": { - "type": "string" - }, - "abyrgdarmadur": { - "type": "string" - }, - "flokkur": { - "type": "string" - }, - "leyfi_Til_Utiveitinga": { - "type": "string" - }, - "afgr_Afgengis_Virkirdagar": { - "type": "string" - }, - "afgr_Afgengis_Adfaranott_Fridaga": { - "type": "string" - }, - "afgr_Afgengis_Virkirdagar_Utiveitingar": { - "type": "string" - }, - "afgr_Afgengis_Adfaranott_Fridaga_Utiveitingar": { - "type": "string" - }, - "hamarksfjoldiGesta": { - "type": "integer", - "format": "int32" - }, - "fjoldiGestaIVeitingum": { - "type": "integer", - "format": "int32" - } - } - }, - "VirkLeyfiMedfastanumer": { - "type": "object", - "required": ["rowNum"], - "properties": { - "rowNum": { - "type": "integer", - "format": "int64" - }, - "utgefidAf": { - "type": "string" - }, - "leyfisnumer": { - "type": "string" - }, - "stadur": { - "type": "string" - }, - "kallast": { - "type": "string" - }, - "gata": { - "type": "string" - }, - "postnumer": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "tegund2": { - "type": "string" - }, - "tegundVeitingastadar": { - "type": "string" - }, - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - }, - "leyfishafi": { - "type": "string" - }, - "abyrgdarmadur": { - "type": "string" - }, - "flokkur": { - "type": "string" - }, - "leyfi_Til_Utiveitinga": { - "type": "string" - }, - "afgr_Afgengis_Virkirdagar": { - "type": "string" - }, - "afgr_Afgengis_Adfaranott_Fridaga": { - "type": "string" - }, - "afgr_Afgengis_Virkirdagar_Utiveitingar": { - "type": "string" - }, - "afgr_Afgengis_Adfaranott_Fridaga_Utiveitingar": { - "type": "string" - }, - "hamarksfjoldiGesta": { - "type": "integer", - "format": "int32" - }, - "fjoldiGestaIVeitingum": { - "type": "integer", - "format": "int32" - }, - "fastanumerFasteigna": { - "type": "array", - "items": { - "$ref": "#/definitions/VirkLeyfiFastanumerListi" + }, + "EmbaettiOgStarfsstodvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "stadur": { + "type": "string", + "nullable": true + }, + "adsetur": { + "type": "string", + "nullable": true + }, + "starfsstodID": { + "type": "string", + "nullable": true } } - } - }, - "VirkLeyfiFastanumerListi": { - "type": "object", - "properties": { - "fastaNumer": { - "type": "string" - }, - "hamarksfjoldiGestaIGistingu": { - "type": "integer", - "format": "int32" - }, - "hamarksfjoldiGestaIVeitingum": { - "type": "integer", - "format": "int32" - } - } - }, - "UppfaeraHeimagistingarModel": { - "type": "object", - "properties": { - "leyfi": { - "type": "array", - "items": { - "$ref": "#/definitions/UppfaeraHeimagistingDetail" + }, + "Okutaeki": { + "type": "object", + "additionalProperties": false, + "properties": { + "numerOkutaekis": { + "type": "string", + "nullable": true + }, + "fastanumerOkutaekis": { + "type": "string", + "nullable": true + }, + "framleidandi": { + "type": "string", + "nullable": true + }, + "framleidandaGerd": { + "type": "string", + "nullable": true + }, + "litur": { + "type": "string", + "nullable": true + }, + "skraning": { + "type": "string", + "nullable": true + }, + "nafnEiganda": { + "type": "string", + "nullable": true + }, + "kennitalaEiganda": { + "type": "string", + "nullable": true + }, + "heimilisfangEiganda": { + "type": "string", + "nullable": true + }, + "skraningardagur": { + "type": "string", + "format": "date-time" + }, + "skraningardagurEiganda": { + "type": "string", + "format": "date-time" } } - } - }, - "UppfaeraHeimagistingDetail": { - "type": "object", - "properties": { - "tegund": { - "type": "string" - }, - "numer": { - "type": "string" - }, - "markadsefniSlod": { - "type": "string" - }, - "fannst": { - "type": "boolean" - } - } - }, - "HeimagistingarModel": { - "type": "object", - "properties": { - "leyfi": { - "type": "array", - "items": { - "$ref": "#/definitions/HeimagistingDetail" + }, + "Uppbod": { + "type": "object", + "additionalProperties": false, + "properties": { + "embaetti": { + "type": "string", + "nullable": true + }, + "starfsstod": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "andlag": { + "type": "string", + "nullable": true + }, + "dagsetning": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "klukkan": { + "type": "string", + "nullable": true + }, + "fastanumer": { + "type": "string", + "nullable": true + }, + "andlagHeiti": { + "type": "string", + "nullable": true + }, + "gerdarbeidendur": { + "type": "string", + "nullable": true + }, + "gerdartholar": { + "type": "string", + "nullable": true + }, + "lausafjarmunir": { + "type": "string", + "nullable": true + }, + "auglysingatexti": { + "type": "string", + "nullable": true + }, + "uppbodStadur": { + "type": "string", + "nullable": true } } - } - }, - "HeimagistingDetail": { - "type": "object", - "properties": { - "tegund": { - "type": "string" - }, - "numerLeyfist": { - "type": "string" - }, - "virkt": { - "type": "boolean" - }, - "utgefid": { - "type": "string" + }, + "LogradamadurSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "gildirTil": { + "type": "string", + "format": "date-time", + "nullable": true + } } - } - }, - "VirkarHeimagistingar": { - "type": "object", - "properties": { - "skraningarnumer": { - "type": "string" - }, - "heitiHeimagistingar": { - "type": "string" - }, - "heimilisfang": { - "type": "string" - }, - "abyrgdarmadur": { - "type": "string" - }, - "umsoknarAr": { - "type": "string" - }, - "sveitarfelag": { - "type": "string" - }, - "gestafjoldi": { - "type": "integer", - "format": "int32" - }, - "fjoldiHerbergja": { - "type": "integer", - "format": "int32" - }, - "fastanumer": { - "type": "string" - }, - "ibudanumer": { - "type": "string" - }, - "postnumer": { - "type": "string" + }, + "Logmenn": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "tegundRettinda": { + "type": "string", + "nullable": true + } } - } - }, - "AranuslausSvar": { - "type": "object", - "required": ["fraDags"], - "properties": { - "fraDags": { - "type": "string", - "format": "date-time" - }, - "audkenniSvars": { - "type": "string" - }, - "aranguslausFjarnam": { - "type": "array", - "items": { - "$ref": "#/definitions/AranguslausFjarnamMal" + }, + "Afengisleyfi": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegund": { + "type": "string", + "nullable": true + }, + "tegundLeyfis": { + "type": "string", + "nullable": true + }, + "leyfisnumer": { + "type": "string", + "nullable": true + }, + "utgefidAf": { + "type": "string", + "nullable": true + }, + "skraningarAr": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "gildirTil": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "leyfishafi": { + "type": "string", + "nullable": true + }, + "abyrgdarmadur": { + "type": "string", + "nullable": true + }, + "embaetti": { + "type": "string", + "nullable": true + }, + "starfsstodEmbaettis": { + "type": "string", + "nullable": true } } - } - }, - "AranguslausFjarnamMal": { - "type": "object", - "required": ["dags"], - "properties": { - "malsnumer": { - "type": "string" - }, - "dags": { - "type": "string", - "format": "date-time" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "upphaedKrofu": { - "type": "number", - "format": "decimal" - }, - "kennitalaUmbodsmanns": { - "type": "string" - }, - "kennitalaGerdarbeidanda": { - "type": "string" - }, - "kennitalaEmbaettis": { - "type": "string" + }, + "Meistaraleyfi": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "idngrein": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "embaetti": { + "type": "string", + "nullable": true + } } - } - }, - "AranuslausFyrirspurn": { - "type": "object", - "required": ["fraDags"], - "properties": { - "fraDags": { - "type": "string", - "format": "date-time" - }, - "audkenni": { - "type": "string" + }, + "StarfsrettindiModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "starfsrettindi": { + "type": "string", + "nullable": true + } } - } - }, - "NyskraAdfaraBeidniSkeyti": { - "type": "object", - "properties": { - "beidni": { - "$ref": "#/definitions/AdfaraBeidni" - }, - "audkenni": { - "type": "string" + }, + "Taekifaerisleyfi": { + "type": "object", + "additionalProperties": false, + "properties": { + "malategund": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "tegundLeyfis": { + "type": "string", + "nullable": true + }, + "leyfisnumer": { + "type": "string", + "nullable": true + }, + "utgefidAf": { + "type": "string", + "nullable": true + }, + "skraningarAr": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time" + }, + "gildirTil": { + "type": "string", + "format": "date-time" + }, + "leyfishafi": { + "type": "string", + "nullable": true + }, + "abyrgdarmadur": { + "type": "string", + "nullable": true + }, + "hamarksfjoldi": { + "type": "integer", + "format": "int32" + }, + "aaetladurFjoldi": { + "type": "integer", + "format": "int32" + }, + "stadur": { + "type": "string", + "nullable": true + } } - } - }, - "AdfaraBeidni": { - "type": "object", - "required": [ - "bendaNumer", - "dags", - "dagsBunka", - "upphaedKrofu", - "dagsetningLoksAðdararfrests", - "fallidFraForgangi" - ], - "properties": { - "audkenni": { - "type": "string" - }, - "embaetti": { - "type": "string" - }, - "bendaNumer": { - "type": "integer", - "format": "int64" - }, - "adilar": { - "type": "array", - "items": { - "$ref": "#/definitions/AdfaraAdili" + }, + "VirkLeyfi": { + "type": "object", + "additionalProperties": false, + "properties": { + "rowNum": { + "type": "integer", + "format": "int64" + }, + "utgefidAf": { + "type": "string", + "nullable": true + }, + "leyfisnumer": { + "type": "string", + "nullable": true + }, + "stadur": { + "type": "string", + "nullable": true + }, + "kallast": { + "type": "string", + "nullable": true + }, + "gata": { + "type": "string", + "nullable": true + }, + "postnumer": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "tegund2": { + "type": "string", + "nullable": true + }, + "tegundVeitingastadar": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "gildirTil": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "leyfishafi": { + "type": "string", + "nullable": true + }, + "abyrgdarmadur": { + "type": "string", + "nullable": true + }, + "flokkur": { + "type": "string", + "nullable": true + }, + "leyfi_Til_Utiveitinga": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Virkirdagar": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Adfaranott_Fridaga": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Virkirdagar_Utiveitingar": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Adfaranott_Fridaga_Utiveitingar": { + "type": "string", + "nullable": true + }, + "hamarksfjoldiGesta": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fjoldiGestaIVeitingum": { + "type": "integer", + "format": "int32", + "nullable": true } - }, - "gerdarbeidandi": { - "$ref": "#/definitions/AdfaraAdili" - }, - "umbodsmadur": { - "$ref": "#/definitions/AdfaraAdili" - }, - "dags": { - "type": "string", - "format": "date-time" - }, - "dagsBunka": { - "type": "string", - "format": "date-time" - }, - "flokkur": { - "type": "string" - }, - "upphaedKrofu": { - "type": "number", - "format": "decimal" - }, - "malsnumerGerdarbeidanda": { - "type": "string" - }, - "krofulysing": { - "type": "array", - "items": { - "$ref": "#/definitions/AdfaraKrofulysing" + } + }, + "VirkLeyfiMedfastanumer": { + "type": "object", + "additionalProperties": false, + "properties": { + "rowNum": { + "type": "integer", + "format": "int64" + }, + "utgefidAf": { + "type": "string", + "nullable": true + }, + "leyfisnumer": { + "type": "string", + "nullable": true + }, + "stadur": { + "type": "string", + "nullable": true + }, + "kallast": { + "type": "string", + "nullable": true + }, + "gata": { + "type": "string", + "nullable": true + }, + "postnumer": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "tegund2": { + "type": "string", + "nullable": true + }, + "tegundVeitingastadar": { + "type": "string", + "nullable": true + }, + "gildirFra": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "gildirTil": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "leyfishafi": { + "type": "string", + "nullable": true + }, + "abyrgdarmadur": { + "type": "string", + "nullable": true + }, + "flokkur": { + "type": "string", + "nullable": true + }, + "leyfi_Til_Utiveitinga": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Virkirdagar": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Adfaranott_Fridaga": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Virkirdagar_Utiveitingar": { + "type": "string", + "nullable": true + }, + "afgr_Afgengis_Adfaranott_Fridaga_Utiveitingar": { + "type": "string", + "nullable": true + }, + "hamarksfjoldiGesta": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fjoldiGestaIVeitingum": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fastanumerFasteigna": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/VirkLeyfiFastanumerListi" + } } - }, - "fylgiskjol": { - "type": "array", - "items": { - "$ref": "#/definitions/AdfaraFylgiskjol" + } + }, + "VirkLeyfiFastanumerListi": { + "type": "object", + "additionalProperties": false, + "properties": { + "fastaNumer": { + "type": "string", + "nullable": true + }, + "hamarksfjoldiGestaIGistingu": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "hamarksfjoldiGestaIVeitingum": { + "type": "integer", + "format": "int32", + "nullable": true } - }, - "dagsetningLoksAðdararfrests": { - "type": "string", - "format": "date-time" - }, - "fallidFraForgangi": { - "type": "boolean" - }, - "fyrirsvarsmadur": { - "$ref": "#/definitions/Fyrirsvarsmadur" } - } - }, - "AdfaraAdili": { - "type": "object", - "required": ["notarKyn", "kyn"], - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "heimili": { - "type": "string" - }, - "postfang": { - "type": "string" - }, - "simi": { - "type": "string" - }, - "notarKyn": { - "type": "boolean" - }, - "kyn": { - "type": "integer", - "format": "int32" + }, + "UppfaeraHeimagistingarModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "leyfi": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/UppfaeraHeimagistingDetail" + } + } } - } - }, - "AdfaraKrofulysing": { - "type": "object", - "required": ["upphaed"], - "properties": { - "lysing": { - "type": "string" - }, - "upphaed": { - "type": "number", - "format": "decimal" + }, + "UppfaeraHeimagistingDetail": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegund": { + "type": "string", + "nullable": true + }, + "numer": { + "type": "string", + "nullable": true + }, + "markadsefniSlod": { + "type": "string", + "nullable": true + }, + "fannst": { + "type": "boolean", + "nullable": true + } } - } - }, - "AdfaraFylgiskjol": { - "type": "object", - "properties": { - "numer": { - "type": "string" - }, - "heiti": { - "type": "string" + }, + "HeimagistingarModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "leyfi": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/HeimagistingDetail" + } + } } - } - }, - "Fyrirsvarsmadur": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "heimilisfang": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "postnumerStadur": { - "type": "string" + }, + "HeimagistingDetail": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegund": { + "type": "string", + "nullable": true + }, + "numerLeyfist": { + "type": "string", + "nullable": true + }, + "virkt": { + "type": "boolean", + "nullable": true + }, + "utgefid": { + "type": "string", + "nullable": true + } } - } - }, - "UppbodFasteignir": { - "type": "object", - "required": ["dagsUppbods"], - "properties": { - "lysing": { - "type": "string" - }, - "eigendur": { - "type": "string" - }, - "gerdarbeidendur": { - "type": "string" - }, - "dagsUppbods": { - "type": "string", - "format": "date-time" + }, + "VirkarHeimagistingar": { + "type": "object", + "additionalProperties": false, + "properties": { + "skraningarnumer": { + "type": "string", + "nullable": true + }, + "heitiHeimagistingar": { + "type": "string", + "nullable": true + }, + "heimilisfang": { + "type": "string", + "nullable": true + }, + "abyrgdarmadur": { + "type": "string", + "nullable": true + }, + "umsoknarAr": { + "type": "string", + "nullable": true + }, + "sveitarfelag": { + "type": "string", + "nullable": true + }, + "gestafjoldi": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fjoldiHerbergja": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fastanumer": { + "type": "string", + "nullable": true + }, + "ibudanumer": { + "type": "string", + "nullable": true + }, + "postnumer": { + "type": "string", + "nullable": true + } } - } - }, - "AdfarabeidniSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "malsnumer": { - "type": "string" - }, - "kennitalaVinnsluadila": { - "type": "string" + }, + "AranuslausSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "fraDags": { + "type": "string", + "format": "date-time" + }, + "audkenniSvars": { + "type": "string", + "nullable": true + }, + "aranguslausFjarnam": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AranguslausFjarnamMal" + } + } } - } - }, - "AranuslausFraTilSvar": { - "type": "object", - "required": ["fraDags", "tilDags"], - "properties": { - "fraDags": { - "type": "string", - "format": "date-time" - }, - "tilDags": { - "type": "string", - "format": "date-time" - }, - "audkenniSvars": { - "type": "string" - }, - "aranguslausFjarnam": { - "type": "array", - "items": { - "$ref": "#/definitions/AranguslausFjarnamMal" + }, + "AranguslausFjarnamMal": { + "type": "object", + "additionalProperties": false, + "properties": { + "malsnumer": { + "type": "string", + "nullable": true + }, + "dags": { + "type": "string", + "format": "date-time" + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "upphaedKrofu": { + "type": "number", + "format": "decimal", + "nullable": true + }, + "kennitalaUmbodsmanns": { + "type": "string", + "nullable": true + }, + "kennitalaGerdarbeidanda": { + "type": "string", + "nullable": true + }, + "kennitalaEmbaettis": { + "type": "string", + "nullable": true } } - } - }, - "AranuslausFratilFyrirspurn": { - "type": "object", - "required": ["fraDags", "tilDags"], - "properties": { - "fraDags": { - "type": "string", - "format": "date-time" - }, - "tilDags": { - "type": "string", - "format": "date-time" - }, - "audkenni": { - "type": "string" + }, + "AranuslausFyrirspurn": { + "type": "object", + "additionalProperties": false, + "properties": { + "fraDags": { + "type": "string", + "format": "date-time" + }, + "audkenni": { + "type": "string", + "nullable": true + } } - } - }, - "KonnunarvottordSvar": { - "type": "object", - "properties": { - "stada": { - "type": "string" - }, - "skyring": { - "type": "string" - }, - "simi": { - "type": "string" - }, - "netfang": { - "type": "string" + }, + "NyskraAdfaraBeidniSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "beidni": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/AdfaraBeidni" + } + ] + }, + "audkenni": { + "type": "string", + "nullable": true + } } - } - }, - "BankaupplysingarDanarbusSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "stadaVidskiptamanns": { - "$ref": "#/definitions/Stadavidskiptamanns" + }, + "AdfaraBeidni": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "embaetti": { + "type": "string", + "nullable": true + }, + "bendaNumer": { + "type": "integer", + "format": "int64" + }, + "adilar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AdfaraAdili" + } + }, + "gerdarbeidandi": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/AdfaraAdili" + } + ] + }, + "umbodsmadur": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/AdfaraAdili" + } + ] + }, + "dags": { + "type": "string", + "format": "date-time" + }, + "dagsBunka": { + "type": "string", + "format": "date-time" + }, + "flokkur": { + "type": "string", + "nullable": true + }, + "upphaedKrofu": { + "type": "number", + "format": "decimal" + }, + "malsnumerGerdarbeidanda": { + "type": "string", + "nullable": true + }, + "krofulysing": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AdfaraKrofulysing" + } + }, + "fylgiskjol": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AdfaraFylgiskjol" + } + }, + "dagsetningLoksAðdararfrests": { + "type": "string", + "format": "date-time" + }, + "fallidFraForgangi": { + "type": "boolean" + }, + "fyrirsvarsmadur": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Fyrirsvarsmadur" + } + ] + } } - } - }, - "Stadavidskiptamanns": { - "type": "object", - "required": ["keyrsluDags", "dagsetningYfirlits"], - "properties": { - "kennitala": { - "type": "string" - }, - "keyrsluDags": { - "type": "string", - "format": "date-time" - }, - "dagsetningYfirlits": { - "type": "string", - "format": "date-time" - }, - "abyrgdVegna3jaAdila": { - "type": "array", - "items": { - "$ref": "#/definitions/AbyrgdVegna3jaAdila" + }, + "AdfaraAdili": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "heimili": { + "type": "string", + "nullable": true + }, + "postfang": { + "type": "string", + "nullable": true + }, + "simi": { + "type": "string", + "nullable": true + }, + "notarKyn": { + "type": "boolean" + }, + "kyn": { + "type": "integer", + "format": "int32" } - }, - "geymsluholf": { - "type": "array", - "items": { - "$ref": "#/definitions/Geymsluholf" + } + }, + "AdfaraKrofulysing": { + "type": "object", + "additionalProperties": false, + "properties": { + "lysing": { + "type": "string", + "nullable": true + }, + "upphaed": { + "type": "number", + "format": "decimal" } - }, - "hlutabref": { - "type": "array", - "items": { - "$ref": "#/definitions/Hlutabref" + } + }, + "AdfaraFylgiskjol": { + "type": "object", + "additionalProperties": false, + "properties": { + "numer": { + "type": "string", + "nullable": true + }, + "heiti": { + "type": "string", + "nullable": true } - }, - "innheimtuSkuldabref": { - "type": "array", - "items": { - "$ref": "#/definitions/InnheimtuSkuldabref" + } + }, + "Fyrirsvarsmadur": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "heimilisfang": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "postnumerStadur": { + "type": "string", + "nullable": true } - }, - "innstaedurIBonkumOgSparisjodum": { - "type": "array", - "items": { - "$ref": "#/definitions/InnistaedaIBonkumOgSparisjodum" + } + }, + "UppbodFasteignir": { + "type": "object", + "additionalProperties": false, + "properties": { + "lysing": { + "type": "string", + "nullable": true + }, + "eigendur": { + "type": "string", + "nullable": true + }, + "gerdarbeidendur": { + "type": "string", + "nullable": true + }, + "dagsUppbods": { + "type": "string", + "format": "date-time" } - }, - "sjodir": { - "type": "array", - "items": { - "$ref": "#/definitions/Sjodir" + } + }, + "AdfarabeidniSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitalaVinnsluadila": { + "type": "string", + "nullable": true } - }, - "skjol": { - "type": "array", - "items": { - "$ref": "#/definitions/Skjol" + } + }, + "AranuslausFraTilSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "fraDags": { + "type": "string", + "format": "date-time" + }, + "tilDags": { + "type": "string", + "format": "date-time" + }, + "audkenniSvars": { + "type": "string", + "nullable": true + }, + "aranguslausFjarnam": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AranguslausFjarnamMal" + } } - }, - "skuldabref": { - "type": "array", - "items": { - "$ref": "#/definitions/Skuldabref" + } + }, + "AranuslausFratilFyrirspurn": { + "type": "object", + "additionalProperties": false, + "properties": { + "fraDags": { + "type": "string", + "format": "date-time" + }, + "tilDags": { + "type": "string", + "format": "date-time" + }, + "audkenni": { + "type": "string", + "nullable": true } - }, - "stadaKreditkorta": { - "type": "array", - "items": { - "$ref": "#/definitions/StadaKreditkorta" + } + }, + "KonnunarvottordSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true + }, + "skyring": { + "type": "string", + "nullable": true + }, + "simi": { + "type": "string", + "nullable": true + }, + "netfang": { + "type": "string", + "nullable": true } - }, - "tryggingarbref": { - "type": "array", - "items": { - "$ref": "#/definitions/Tryggingarbref" + } + }, + "BankaupplysingarDanarbusSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "stadaVidskiptamanns": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Stadavidskiptamanns" + } + ] } - }, - "utlan": { - "type": "array", - "items": { - "$ref": "#/definitions/Utlan" + } + }, + "Stadavidskiptamanns": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "keyrsluDags": { + "type": "string", + "format": "date-time" + }, + "dagsetningYfirlits": { + "type": "string", + "format": "date-time" + }, + "abyrgdVegna3jaAdila": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AbyrgdVegna3jaAdila" + } + }, + "geymsluholf": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Geymsluholf" + } + }, + "hlutabref": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Hlutabref" + } + }, + "innheimtuSkuldabref": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/InnheimtuSkuldabref" + } + }, + "innstaedurIBonkumOgSparisjodum": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/InnistaedaIBonkumOgSparisjodum" + } + }, + "sjodir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Sjodir" + } + }, + "skjol": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Skjol" + } + }, + "skuldabref": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Skuldabref" + } + }, + "stadaKreditkorta": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/StadaKreditkorta" + } + }, + "tryggingarbref": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Tryggingarbref" + } + }, + "utlan": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Utlan" + } } } - } - }, - "AbyrgdVegna3jaAdila": { - "type": "object", - "required": ["tegund", "stadaISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "tegund": { - "type": "integer", - "format": "int32" - }, - "stadaISK": { - "type": "integer", - "format": "int32" - }, - "mynt": { - "type": "string" - } - } - }, - "Geymsluholf": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "stadsetning": { - "type": "string" - } - } - }, - "Hlutabref": { - "type": "object", - "required": ["stadaISK", "erSkradAMarkad"], - "properties": { - "audkenni": { - "type": "string" - }, - "heiti": { - "type": "string" - }, - "stadaISK": { - "type": "integer", - "format": "int32" - }, - "erSkradAMarkad": { - "type": "boolean" + }, + "AbyrgdVegna3jaAdila": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "integer", + "format": "int32" + }, + "stadaISK": { + "type": "integer", + "format": "int32" + }, + "mynt": { + "type": "string", + "nullable": true + } } - } - }, - "InnheimtuSkuldabref": { - "type": "object", - "required": ["stadaIsk"], - "properties": { - "audkenni": { - "type": "string" - }, - "utgefandi": { - "type": "string" - }, - "stadaIsk": { - "type": "integer", - "format": "int32" + }, + "Geymsluholf": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "stadsetning": { + "type": "string", + "nullable": true + } } - } - }, - "InnistaedaIBonkumOgSparisjodum": { - "type": "object", - "required": ["stadaISK", "afallnirVextirISK", "stadaSamtalsISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "stadaISK": { - "type": "integer", - "format": "int32" - }, - "afallnirVextirISK": { - "type": "integer", - "format": "int32" - }, - "stadaSamtalsISK": { - "type": "integer", - "format": "int32" - }, - "mynt": { - "type": "string" + }, + "Hlutabref": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "heiti": { + "type": "string", + "nullable": true + }, + "stadaISK": { + "type": "integer", + "format": "int32" + }, + "erSkradAMarkad": { + "type": "boolean" + } } - } - }, - "Sjodir": { - "type": "object", - "required": ["stadaISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "stadaISK": { - "type": "integer", - "format": "int32" + }, + "InnheimtuSkuldabref": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "utgefandi": { + "type": "string", + "nullable": true + }, + "stadaIsk": { + "type": "integer", + "format": "int32" + } } - } - }, - "Skjol": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "lysing": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "fileDataBase64": { - "type": "string" + }, + "InnistaedaIBonkumOgSparisjodum": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "stadaISK": { + "type": "integer", + "format": "int32" + }, + "afallnirVextirISK": { + "type": "integer", + "format": "int32" + }, + "stadaSamtalsISK": { + "type": "integer", + "format": "int32" + }, + "mynt": { + "type": "string", + "nullable": true + } } - } - }, - "Skuldabref": { - "type": "object", - "required": ["stadaIsk"], - "properties": { - "audkenni": { - "type": "string" - }, - "utgefandi": { - "type": "string" - }, - "stadaIsk": { - "type": "integer", - "format": "int32" + }, + "Sjodir": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "stadaISK": { + "type": "integer", + "format": "int32" + } } - } - }, - "StadaKreditkorta": { - "type": "object", - "required": ["inneignISK", "skuldISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "inneignISK": { - "type": "integer", - "format": "int32" - }, - "skuldISK": { - "type": "integer", - "format": "int32" + }, + "Skjol": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "lysing": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "fileDataBase64": { + "type": "string", + "nullable": true + } } - } - }, - "Tryggingarbref": { - "type": "object", - "required": ["stadaISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "heiti": { - "type": "string" - }, - "vedAndlag": { - "type": "string" - }, - "stadaISK": { - "type": "integer", - "format": "int32" + }, + "Skuldabref": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "utgefandi": { + "type": "string", + "nullable": true + }, + "stadaIsk": { + "type": "integer", + "format": "int32" + } } - } - }, - "Utlan": { - "type": "object", - "required": ["stadaISK"], - "properties": { - "audkenni": { - "type": "string" - }, - "heiti": { - "type": "string" - }, - "stadaISK": { - "type": "integer", - "format": "int32" - }, - "mynt": { - "type": "string" + }, + "StadaKreditkorta": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "inneignISK": { + "type": "integer", + "format": "int32" + }, + "skuldISK": { + "type": "integer", + "format": "int32" + } } - } - }, - "AlgengTengsl": { - "type": "object", - "required": ["oid", "virk"], - "properties": { - "oid": { - "type": "integer", - "format": "int32" - }, - "heiti": { - "type": "string" - }, - "virk": { - "type": "boolean" + }, + "Tryggingarbref": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "heiti": { + "type": "string", + "nullable": true + }, + "vedAndlag": { + "type": "string", + "nullable": true + }, + "stadaISK": { + "type": "integer", + "format": "int32" + } } - } - }, - "AlgengUmsaekjandaTengsl": { - "type": "object", - "required": ["oid"], - "properties": { - "oid": { - "type": "integer", - "format": "int32" - }, - "heiti": { - "type": "string" + }, + "Utlan": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "heiti": { + "type": "string", + "nullable": true + }, + "stadaISK": { + "type": "integer", + "format": "int32" + }, + "mynt": { + "type": "string", + "nullable": true + } } - } - }, - "ErfdafjarskatturSvar": { - "type": "object", - "required": ["gildirFra", "erfdafjarskattur", "skattfrelsismorkUpphaed"], - "properties": { - "gildirFra": { - "type": "string", - "format": "date-time" - }, - "erfdafjarskattur": { - "type": "integer", - "format": "int32" - }, - "skattfrelsismorkUpphaed": { - "type": "number", - "format": "double" + }, + "AlgengTengsl": { + "type": "object", + "additionalProperties": false, + "properties": { + "oid": { + "type": "integer", + "format": "int32" + }, + "heiti": { + "type": "string", + "nullable": true + }, + "virk": { + "type": "boolean" + } } - } - }, - "SkiptaUmSkraningaradiliSkeyti": { - "type": "object", - "properties": { - "stada": { - "type": "string" + }, + "AlgengUmsaekjandaTengsl": { + "type": "object", + "additionalProperties": false, + "properties": { + "oid": { + "type": "integer", + "format": "int32" + }, + "heiti": { + "type": "string", + "nullable": true + } } - } - }, - "SkiptaUmSkraningaradili": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "kennitalaFra": { - "type": "string" - }, - "kennitalaTil": { - "type": "string" - }, - "malsnumer": { - "type": "string" + }, + "ErfdafjarskatturSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "gildirFra": { + "type": "string", + "format": "date-time" + }, + "erfdafjarskattur": { + "type": "integer", + "format": "int32" + }, + "skattfrelsismorkUpphaed": { + "type": "number", + "format": "double" + } } - } - }, - "SkraningaradiliDanarbusSkeyti": { - "type": "object", - "required": [ - "danardagur", - "kaupmaili", - "erfdaskraIVorsluSyslumanns", - "vitneskjaUmAdraErfdaskra", - "bankareikningarVerdbrefEdaHlutabref", - "eiginRekstur", - "buseturetturVegnaKaupleiguIbuda", - "eignirErlendis" - ], - "properties": { - "adilarDanarbus": { - "type": "array", - "items": { - "$ref": "#/definitions/AdiliDanarbus" + }, + "SkiptaUmSkraningaradiliSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true } - }, - "eignir": { - "type": "array", - "items": { - "$ref": "#/definitions/EignirDanarbus" + } + }, + "SkiptaUmSkraningaradili": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "kennitalaFra": { + "type": "string", + "nullable": true + }, + "kennitalaTil": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true } - }, - "kennitalaSkreningaradila": { - "type": "string" - }, - "simiSkraningaradila": { - "type": "string" - }, - "tolvuposturSkreningaradila": { - "type": "string" - }, - "kennitalaLatins": { - "type": "string" - }, - "nafnLatins": { - "type": "string" - }, - "danardagur": { - "type": "string", - "format": "date-time" - }, - "malsnumer": { - "type": "string" - }, - "embaetti": { - "type": "string" - }, - "kaupmaili": { - "type": "boolean" - }, - "erfdaskraIVorsluSyslumanns": { - "type": "boolean" - }, - "vitneskjaUmAdraErfdaskra": { - "type": "boolean" - }, - "bankareikningarVerdbrefEdaHlutabref": { - "type": "boolean" - }, - "eiginRekstur": { - "type": "boolean" - }, - "buseturetturVegnaKaupleiguIbuda": { - "type": "boolean" - }, - "eignirErlendis": { - "type": "boolean" - }, - "vidbotarupplysingar": { - "type": "string" } - } - }, - "AdiliDanarbus": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "tegundTengsla": { - "type": "string" + }, + "SkraningaradiliDanarbusSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "adilarDanarbus": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/AdiliDanarbus" + } + }, + "eignir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EignirDanarbus" + } + }, + "kennitalaSkreningaradila": { + "type": "string", + "nullable": true + }, + "simiSkraningaradila": { + "type": "string", + "nullable": true + }, + "tolvuposturSkreningaradila": { + "type": "string", + "nullable": true + }, + "kennitalaLatins": { + "type": "string", + "nullable": true + }, + "nafnLatins": { + "type": "string", + "nullable": true + }, + "danardagur": { + "type": "string", + "format": "date-time" + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "embaetti": { + "type": "string", + "nullable": true + }, + "kaupmaili": { + "type": "boolean" + }, + "erfdaskraIVorsluSyslumanns": { + "type": "boolean" + }, + "vitneskjaUmAdraErfdaskra": { + "type": "boolean" + }, + "bankareikningarVerdbrefEdaHlutabref": { + "type": "boolean" + }, + "eiginRekstur": { + "type": "boolean" + }, + "buseturetturVegnaKaupleiguIbuda": { + "type": "boolean" + }, + "eignirErlendis": { + "type": "boolean" + }, + "vidbotarupplysingar": { + "type": "string", + "nullable": true + } } - } - }, - "EignirDanarbus": { - "type": "object", - "required": ["tegundAngalgs", "eignarhlutfall"], - "properties": { - "tegundAngalgs": { - "$ref": "#/definitions/TegundAndlags" - }, - "fastanumer": { - "type": "string" - }, - "lysing": { - "type": "string" - }, - "eignarhlutfall": { - "type": "number", - "format": "float" - }, - "verdmaeti": { - "type": "string" - }, - "upphaed": { - "type": "string" - }, - "gengiVextir": { - "type": "string" + }, + "AdiliDanarbus": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "tegundTengsla": { + "type": "string", + "nullable": true + } } - } - }, - "TegundAndlags": { - "type": "integer", - "description": "0 = Fasteign\n1 = Okutaeki\n2 = Skip\n3 = Lausafe\n4 = Loftfar\n5 = Oskrad\n6 = AdrarEignir\n7 = Hlutabref\n8 = InnistaedaIBanka\n9 = PeningarOgBankaholf\n10 = Skotvopn\n11 = VerdbrefOgKrofur\n12 = Utfarakostnadur\n13 = OpinberGjold\n14 = AdrarSkuldir\n15 = EignirIAtvinnurekstri\n16 = SkuldirIAtvinnurekstri\n17 = Fasteignagjold\n18 = Tryggingastofnun\n19 = Lan\n20 = Kreditkort\n21 = Yfirdrattur", - "x-enumNames": [ - "Fasteign", - "Okutaeki", - "Skip", - "Lausafe", - "Loftfar", - "Oskrad", - "AdrarEignir", - "Hlutabref", - "InnistaedaIBanka", - "PeningarOgBankaholf", - "Skotvopn", - "VerdbrefOgKrofur", - "Utfarakostnadur", - "OpinberGjold", - "AdrarSkuldir", - "EignirIAtvinnurekstri", - "SkuldirIAtvinnurekstri", - "Fasteignagjold", - "Tryggingastofnun", - "Lan", - "Kreditkort", - "Yfirdrattur" - ], - "enum": [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, - 20, 21 - ] - }, - "UpplysingarUrDanarbuiRadstofunSkeyti": { - "type": "object", - "properties": { - "mogulegSkipti": { - "type": "object", - "x-dictionaryKey": { - "$ref": "#/definitions/DanarbuSkipti" + }, + "EignirDanarbus": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegundAngalgs": { + "$ref": "#/components/schemas/TegundAndlags" + }, + "fastanumer": { + "type": "string", + "nullable": true + }, + "lysing": { + "type": "string", + "nullable": true }, - "additionalProperties": { - "type": "string" + "eignarhlutfall": { + "type": "number", + "format": "float" + }, + "verdmaeti": { + "type": "string", + "nullable": true + }, + "upphaed": { + "type": "string", + "nullable": true + }, + "gengiVextir": { + "type": "string", + "nullable": true } - }, - "audkenni": { - "type": "string" - }, - "yfirlit": { - "type": "array", - "items": { - "$ref": "#/definitions/DanarbuUpplRadstofun" + } + }, + "TegundAndlags": { + "type": "integer", + "description": "0 = Fasteign\n1 = Okutaeki\n2 = Skip\n3 = Lausafe\n4 = Loftfar\n5 = Oskrad\n6 = AdrarEignir\n7 = Hlutabref\n8 = InnistaedaIBanka\n9 = PeningarOgBankaholf\n10 = Skotvopn\n11 = VerdbrefOgKrofur\n12 = Utfarakostnadur\n13 = OpinberGjold\n14 = AdrarSkuldir\n15 = EignirIAtvinnurekstri\n16 = SkuldirIAtvinnurekstri\n17 = Fasteignagjold\n18 = Tryggingastofnun\n19 = Lan\n20 = Kreditkort\n21 = Yfirdrattur", + "x-enumNames": [ + "Fasteign", + "Okutaeki", + "Skip", + "Lausafe", + "Loftfar", + "Oskrad", + "AdrarEignir", + "Hlutabref", + "InnistaedaIBanka", + "PeningarOgBankaholf", + "Skotvopn", + "VerdbrefOgKrofur", + "Utfarakostnadur", + "OpinberGjold", + "AdrarSkuldir", + "EignirIAtvinnurekstri", + "SkuldirIAtvinnurekstri", + "Fasteignagjold", + "Tryggingastofnun", + "Lan", + "Kreditkort", + "Yfirdrattur" + ], + "enum": [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21 + ] + }, + "UpplysingarUrDanarbuiRadstofunSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "mogulegSkipti": { + "type": "object", + "nullable": true, + "x-dictionaryKey": { + "$ref": "#/components/schemas/DanarbuSkipti" + }, + "additionalProperties": { + "type": "string" + } + }, + "audkenni": { + "type": "string", + "nullable": true + }, + "yfirlit": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/DanarbuUpplRadstofun" + } + }, + "texti": { + "type": "string", + "nullable": true } - }, - "texti": { - "type": "string" } - } - }, - "DanarbuSkipti": { - "type": "integer", - "description": "0 = OpinberSkipti\n1 = EignalaustDanarbu\n2 = SetaiOskiptuBui\n3 = Einkaskipti", - "x-enumNames": [ - "OpinberSkipti", - "EignalaustDanarbu", - "SetaiOskiptuBui", - "Einkaskipti" - ], - "enum": [0, 1, 2, 3] - }, - "DanarbuUpplRadstofun": { - "type": "object", - "required": ["kaupmali", "erfdakraVitneskja"], - "properties": { - "malsnumer": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "danardagur": { - "type": "string", - "format": "date-time" - }, - "logheimili": { - "type": "string" - }, - "erfingar": { - "type": "array", - "items": { - "$ref": "#/definitions/Erfingar" + }, + "DanarbuSkipti": { + "type": "integer", + "description": "0 = OpinberSkipti\n1 = EignalaustDanarbu\n2 = SetaiOskiptuBui\n3 = Einkaskipti", + "x-enumNames": [ + "OpinberSkipti", + "EignalaustDanarbu", + "SetaiOskiptuBui", + "Einkaskipti" + ], + "enum": [0, 1, 2, 3] + }, + "DanarbuUpplRadstofun": { + "type": "object", + "additionalProperties": false, + "properties": { + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "danardagur": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "logheimili": { + "type": "string", + "nullable": true + }, + "erfingar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Erfingar" + } + }, + "erfdaskra": { + "type": "string", + "nullable": true + }, + "kaupmali": { + "type": "boolean" + }, + "erfdakraVitneskja": { + "type": "boolean" + }, + "eignir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EignirDanarbus" + } + }, + "mogulegSkipti": { + "type": "object", + "nullable": true, + "x-dictionaryKey": { + "$ref": "#/components/schemas/DanarbuSkipti2" + }, + "additionalProperties": { + "type": "string" + } } - }, - "erfdaskra": { - "type": "string" - }, - "kaupmali": { - "type": "boolean" - }, - "erfdakraVitneskja": { - "type": "boolean" - }, - "eignir": { - "type": "array", - "items": { - "$ref": "#/definitions/EignirDanarbus" + } + }, + "Erfingar": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "heimilisfang": { + "type": "string", + "nullable": true + }, + "tengsl": { + "type": "string", + "nullable": true + }, + "simi": { + "type": "string", + "nullable": true + }, + "netfang": { + "type": "string", + "nullable": true + }, + "malsvari": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Malsvari" + } + ] + }, + "arfshlutfall": { + "type": "number", + "format": "decimal", + "nullable": true } - }, - "mogulegSkipti": { - "type": "object", - "x-dictionaryKey": { - "$ref": "#/definitions/DanarbuSkipti2" + } + }, + "Malsvari": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "heimilisfang": { + "type": "string", + "nullable": true + }, + "simi": { + "type": "string", + "nullable": true }, - "additionalProperties": { - "type": "string" + "netfang": { + "type": "string", + "nullable": true } } - } - }, - "Erfingar": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "heimilisfang": { - "type": "string" - }, - "tengsl": { - "type": "string" - }, - "simi": { - "type": "string" - }, - "netfang": { - "type": "string" - }, - "malsvari": { - "$ref": "#/definitions/Malsvari" - }, - "arfshlutfall": { - "type": "number", - "format": "decimal" + }, + "DanarbuSkipti2": { + "type": "integer", + "description": "0 = OpinberSkipti\n1 = EignalaustDanarbu\n2 = SetaiOskiptuBui\n3 = Einkaskipti", + "x-enumNames": [ + "OpinberSkipti", + "EignalaustDanarbu", + "SetaiOskiptuBui", + "Einkaskipti" + ], + "enum": [0, 1, 2, 3] + }, + "Fyrirspurn": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + } } - } - }, - "Malsvari": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "heimilisfang": { - "type": "string" - }, - "simi": { - "type": "string" - }, - "netfang": { - "type": "string" + }, + "UpplysingarUrDanarbuiSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "yfirlit": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/DanarbuUppl" + } + }, + "texti": { + "type": "string", + "nullable": true + } } - } - }, - "DanarbuSkipti2": { - "type": "integer", - "description": "0 = OpinberSkipti\n1 = EignalaustDanarbu\n2 = SetaiOskiptuBui\n3 = Einkaskipti", - "x-enumNames": [ - "OpinberSkipti", - "EignalaustDanarbu", - "SetaiOskiptuBui", - "Einkaskipti" - ], - "enum": [0, 1, 2, 3] - }, - "Fyrirspurn": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "kennitala": { - "type": "string" + }, + "DanarbuUppl": { + "type": "object", + "additionalProperties": false, + "properties": { + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "danardagur": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "logheimili": { + "type": "string", + "nullable": true + }, + "erfingar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Erfingar" + } + }, + "erfdaskra": { + "type": "string", + "nullable": true + }, + "kaupmali": { + "type": "boolean" + }, + "erfdakraVitneskja": { + "type": "boolean" + }, + "eignir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EignirDanarbus" + } + } } - } - }, - "UpplysingarUrDanarbuiSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "yfirlit": { - "type": "array", - "items": { - "$ref": "#/definitions/DanarbuUppl" + }, + "UpplysingarUrDanarbuiSkeytiErfdafjarskatt": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "yfirlit": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/DanarbuUpplErfdafjarskatt" + } + }, + "texti": { + "type": "string", + "nullable": true } - }, - "texti": { - "type": "string" } - } - }, - "DanarbuUppl": { - "type": "object", - "required": ["kaupmali", "erfdakraVitneskja"], - "properties": { - "malsnumer": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "danardagur": { - "type": "string", - "format": "date-time" - }, - "logheimili": { - "type": "string" - }, - "erfingar": { - "type": "array", - "items": { - "$ref": "#/definitions/Erfingar" + }, + "DanarbuUpplErfdafjarskatt": { + "type": "object", + "additionalProperties": false, + "properties": { + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "danardagur": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "logheimili": { + "type": "string", + "nullable": true + }, + "erfingar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Erfingar" + } + }, + "erfdaskra": { + "type": "string", + "nullable": true + }, + "kaupmali": { + "type": "boolean" + }, + "erfdakraVitneskja": { + "type": "boolean" + }, + "eignir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/EignirDanarbusErfdafjarskatt" + } } - }, - "erfdaskra": { - "type": "string" - }, - "kaupmali": { - "type": "boolean" - }, - "erfdakraVitneskja": { - "type": "boolean" - }, - "eignir": { - "type": "array", - "items": { - "$ref": "#/definitions/EignirDanarbus" + } + }, + "EignirDanarbusErfdafjarskatt": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegundAngalgs": { + "$ref": "#/components/schemas/TegundAndlags" + }, + "fastanumer": { + "type": "string", + "nullable": true + }, + "lysing": { + "type": "string", + "nullable": true + }, + "eignarhlutfall": { + "type": "number", + "format": "float" + }, + "fasteignamat": { + "type": "string", + "nullable": true + }, + "upphaed": { + "type": "string", + "nullable": true + }, + "gengiVextir": { + "type": "string", + "nullable": true } } - } - }, - "UpplysingarUrDanarbuiSkeytiErfdafjarskatt": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "yfirlit": { - "type": "array", - "items": { - "$ref": "#/definitions/DanarbuUpplErfdafjarskatt" + }, + "Fasteignasalar": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "starfsstod": { + "type": "string", + "nullable": true + } + } + }, + "ThjoldskraEnstaklingar": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "faedD": { + "type": "string", + "format": "date-time" + }, + "faedingarstadur": { + "type": "string", + "nullable": true + }, + "hjuskaparstada": { + "type": "string", + "nullable": true + }, + "hjuskaparkodi": { + "type": "string", + "nullable": true + }, + "kyn": { + "type": "string", + "nullable": true + }, + "kynKodi": { + "type": "string", + "nullable": true + }, + "rikisfang": { + "type": "string", + "nullable": true + }, + "fjolskNr": { + "type": "string", + "nullable": true + }, + "maki": { + "type": "string", + "nullable": true + }, + "loghHusk": { + "type": "string", + "nullable": true + }, + "heimili": { + "type": "string", + "nullable": true + }, + "postNr": { + "type": "string", + "nullable": true + }, + "postaritun": { + "type": "string", + "nullable": true + }, + "sveitarfelag": { + "type": "string", + "nullable": true + }, + "adsetur": { + "type": "string", + "nullable": true + }, + "aldur": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "eiginnafn": { + "type": "string", + "nullable": true + }, + "millinafn": { + "type": "string", + "nullable": true + }, + "kenninafn": { + "type": "string", + "nullable": true + }, + "birtingarnafn": { + "type": "string", + "nullable": true + }, + "nafnStadfest": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "svfNr": { + "type": "string", + "nullable": true } - }, - "texti": { - "type": "string" } - } - }, - "DanarbuUpplErfdafjarskatt": { - "type": "object", - "required": ["kaupmali", "erfdakraVitneskja"], - "properties": { - "malsnumer": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "danardagur": { - "type": "string", - "format": "date-time" - }, - "logheimili": { - "type": "string" - }, - "erfingar": { - "type": "array", - "items": { - "$ref": "#/definitions/Erfingar" - } - }, - "erfdaskra": { - "type": "string" - }, - "kaupmali": { - "type": "boolean" - }, - "erfdakraVitneskja": { - "type": "boolean" - }, - "eignir": { - "type": "array", - "items": { - "$ref": "#/definitions/EignirDanarbusErfdafjarskatt" + }, + "ErfdarskraSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true } } - } - }, - "EignirDanarbusErfdafjarskatt": { - "type": "object", - "required": ["tegundAngalgs", "eignarhlutfall"], - "properties": { - "tegundAngalgs": { - "$ref": "#/definitions/TegundAndlags" - }, - "fastanumer": { - "type": "string" - }, - "lysing": { - "type": "string" - }, - "eignarhlutfall": { - "type": "number", - "format": "float" - }, - "fasteignamat": { - "type": "string" - }, - "upphaed": { - "type": "string" - }, - "gengiVextir": { - "type": "string" - } - } - }, - "Fasteignasalar": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "starfsstod": { - "type": "string" - } - } - }, - "ThjoldskraEnstaklingar": { - "type": "object", - "required": ["faedD"], - "properties": { - "stada": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "faedD": { - "type": "string", - "format": "date-time" - }, - "faedingarstadur": { - "type": "string" - }, - "hjuskaparstada": { - "type": "string" - }, - "hjuskaparkodi": { - "type": "string" - }, - "kyn": { - "type": "string" - }, - "kynKodi": { - "type": "string" - }, - "rikisfang": { - "type": "string" - }, - "fjolskNr": { - "type": "string" - }, - "maki": { - "type": "string" - }, - "loghHusk": { - "type": "string" - }, - "heimili": { - "type": "string" - }, - "postNr": { - "type": "string" - }, - "postaritun": { - "type": "string" - }, - "sveitarfelag": { - "type": "string" - }, - "adsetur": { - "type": "string" - }, - "aldur": { - "type": "integer", - "format": "int32" - }, - "eiginnafn": { - "type": "string" - }, - "millinafn": { - "type": "string" - }, - "kenninafn": { - "type": "string" - }, - "birtingarnafn": { - "type": "string" - }, - "nafnStadfest": { - "type": "integer", - "format": "int32" - }, - "svfNr": { - "type": "string" - } - } - }, - "ErfdarskraSkeyti": { - "type": "object", - "properties": { - "stada": { - "type": "string" - } - } - }, - "VottordSkeyti": { - "type": "object", - "properties": { - "kennitala": { - "type": "string" - }, - "gildisTimi": { - "type": "string" - }, - "utgafudagur": { - "type": "string" + }, + "VottordSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "gildisTimi": { + "type": "string", + "nullable": true + }, + "utgafudagur": { + "type": "string", + "nullable": true + } } - } - }, - "InnsigludSkjol": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skilabod": { - "type": "string" - }, - "skjol": { - "type": "array", - "items": { - "type": "string" + }, + "InnsigludSkjol": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + }, + "skjol": { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } } } - } - }, - "InnsiglaSkjolSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skyring": { - "type": "string" - }, - "skjol": { - "type": "array", - "items": { - "type": "string" + }, + "InnsiglaSkjolSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skyring": { + "type": "string", + "nullable": true + }, + "skjol": { + "type": "array", + "nullable": true, + "items": { + "type": "string" + } } } - } - }, - "SvarSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skilabod": { - "type": "string" - }, - "skjal": { - "type": "string" + }, + "SvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + }, + "skjal": { + "type": "string", + "nullable": true + } } - } - }, - "InnsiglaSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skyring": { - "type": "string" - }, - "skjal": { - "type": "string" + }, + "InnsiglaSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skyring": { + "type": "string", + "nullable": true + }, + "skjal": { + "type": "string", + "nullable": true + } } - } - }, - "KannaRafraenSkilrikiSimiKennitala": { - "type": "object", - "properties": { - "stada": { - "type": "string" - }, - "skilabod": { - "type": "string" + }, + "KannaRafraenSkilrikiSimiKennitala": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + } } - } - }, - "KannaRafraenSkilrikiKennitala": { - "type": "object", - "required": ["dagsetning"], - "properties": { - "kennitala": { - "type": "string" - }, - "dagsetning": { - "type": "string", - "format": "date-time" - }, - "gildSkilriki": { - "$ref": "#/definitions/ActiveCertsModel" + }, + "KannaRafraenSkilrikiKennitala": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "dagsetning": { + "type": "string", + "format": "date-time" + }, + "gildSkilriki": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/ActiveCertsModel" + } + ] + } } - } - }, - "ActiveCertsModel": { - "type": "object", - "required": ["simi", "app", "kort"], - "properties": { - "simi": { - "type": "boolean" - }, - "app": { - "type": "boolean" - }, - "kort": { - "type": "boolean" + }, + "ActiveCertsModel": { + "type": "object", + "additionalProperties": false, + "properties": { + "simi": { + "type": "boolean" + }, + "app": { + "type": "boolean" + }, + "kort": { + "type": "boolean" + } } - } - }, - "KaupmaliSkeyti": { - "type": "object", - "properties": { - "stada": { - "type": "string" + }, + "KaupmaliSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true + } } - } - }, - "ThjodskraSvarSkeyti": { - "type": "object", - "required": ["kynkodi"], - "properties": { - "stada": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "loghHusk": { - "type": "string" - }, - "heimili": { - "type": "string" - }, - "postaritun": { - "type": "string" - }, - "sveitarfelag": { - "type": "string" - }, - "svfNr": { - "type": "string" - }, - "kynkodi": { - "type": "integer", - "format": "int32" + }, + "ThjodskraSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "stada": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "loghHusk": { + "type": "string", + "nullable": true + }, + "heimili": { + "type": "string", + "nullable": true + }, + "postaritun": { + "type": "string", + "nullable": true + }, + "sveitarfelag": { + "type": "string", + "nullable": true + }, + "svfNr": { + "type": "string", + "nullable": true + }, + "kynkodi": { + "type": "integer", + "format": "int32" + } } - } - }, - "ThjodskraSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "kennitala": { - "type": "string" + }, + "ThjodskraSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + } } - } - }, - "ThjodskraLogadilar": { - "type": "object", - "required": ["erBrottfellt", "bannmerking"], - "properties": { - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "heimili": { - "type": "string" - }, - "postnumer": { - "type": "string" - }, - "svfNr": { - "type": "string" - }, - "postfang": { - "type": "string" - }, - "postnumerPostfang": { - "type": "string" - }, - "svfNrPostfang": { - "type": "string" - }, - "atvinnugreinarnumer": { - "type": "string" - }, - "starfsemi": { - "type": "string" - }, - "flokkur": { - "type": "string" - }, - "kennitalaforradanda": { - "type": "string" - }, - "erBrottfellt": { - "type": "integer", - "format": "int32" - }, - "dagsBrottfellt": { - "type": "string", - "format": "date-time" - }, - "dagsGjaldthrot": { - "type": "string", - "format": "date-time" - }, - "kennitalaModurfelags": { - "type": "string" - }, - "vsk": { - "type": "string" - }, - "bannmerking": { - "type": "integer", - "format": "int32" + }, + "ThjodskraLogadilar": { + "type": "object", + "additionalProperties": false, + "properties": { + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "heimili": { + "type": "string", + "nullable": true + }, + "postnumer": { + "type": "string", + "nullable": true + }, + "svfNr": { + "type": "string", + "nullable": true + }, + "postfang": { + "type": "string", + "nullable": true + }, + "postnumerPostfang": { + "type": "string", + "nullable": true + }, + "svfNrPostfang": { + "type": "string", + "nullable": true + }, + "atvinnugreinarnumer": { + "type": "string", + "nullable": true + }, + "starfsemi": { + "type": "string", + "nullable": true + }, + "flokkur": { + "type": "string", + "nullable": true + }, + "kennitalaforradanda": { + "type": "string", + "nullable": true + }, + "erBrottfellt": { + "type": "integer", + "format": "int32" + }, + "dagsBrottfellt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "dagsGjaldthrot": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "kennitalaModurfelags": { + "type": "string", + "nullable": true + }, + "vsk": { + "type": "string", + "nullable": true + }, + "bannmerking": { + "type": "integer", + "format": "int32" + } } - } - }, - "WebhookEventPayload": { - "type": "object", - "required": ["id"], - "properties": { - "id": { - "type": "string", - "format": "guid" - }, - "eventData": { - "$ref": "#/definitions/SignedDocumentEventData" - }, - "eventSignature": { - "$ref": "#/definitions/EventSignature" + }, + "WebhookEventPayload": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "format": "guid" + }, + "eventData": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/SignedDocumentEventData" + } + ] + }, + "eventSignature": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/EventSignature" + } + ] + } } - } - }, - "SignedDocumentEventData": { - "type": "object", - "required": ["eventType"], - "properties": { - "flowKey": { - "type": "string" - }, - "flowName": { - "type": "string" - }, - "signees": { - "type": "array", - "items": { - "$ref": "#/definitions/Signee" + }, + "SignedDocumentEventData": { + "type": "object", + "additionalProperties": false, + "properties": { + "flowKey": { + "type": "string", + "nullable": true + }, + "flowName": { + "type": "string", + "nullable": true + }, + "signees": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Signee" + } + }, + "signedDocument": { + "type": "string", + "nullable": true + }, + "attachments": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SigningAttachment" + } + }, + "eventType": { + "$ref": "#/components/schemas/EventType" + }, + "meta": { + "type": "object", + "nullable": true, + "additionalProperties": { + "type": "string" + } } - }, - "signedDocument": { - "type": "string" - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/SigningAttachment" + } + }, + "Signee": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "ssn": { + "type": "string", + "nullable": true + }, + "phoneNumber": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "address": { + "type": "string", + "nullable": true + }, + "postalCode": { + "type": "string", + "nullable": true + }, + "city": { + "type": "string", + "nullable": true + }, + "key": { + "type": "string", + "nullable": true + }, + "signed": { + "type": "boolean" + }, + "processKey": { + "type": "string", + "nullable": true + }, + "communicationDeliveryType": { + "type": "integer", + "format": "int32" } - }, - "eventType": { - "$ref": "#/definitions/EventType" - }, - "meta": { - "type": "object", - "additionalProperties": { - "type": "string" + } + }, + "SigningAttachment": { + "type": "object", + "additionalProperties": false, + "properties": { + "fileName": { + "type": "string", + "nullable": true + }, + "fileContent": { + "type": "string", + "nullable": true } } - } - }, - "Signee": { - "type": "object", - "required": ["signed", "communicationDeliveryType"], - "properties": { - "name": { - "type": "string" - }, - "ssn": { - "type": "string" - }, - "phoneNumber": { - "type": "string" - }, - "email": { - "type": "string" - }, - "address": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "city": { - "type": "string" - }, - "key": { - "type": "string" - }, - "signed": { - "type": "boolean" - }, - "processKey": { - "type": "string" - }, - "communicationDeliveryType": { - "type": "integer", - "format": "int32" + }, + "EventType": { + "type": "integer", + "description": "0 = AllSigned", + "x-enumNames": ["AllSigned"], + "enum": [0] + }, + "EventSignature": { + "type": "object", + "additionalProperties": false, + "properties": { + "timeStamp": { + "type": "integer", + "format": "int64" + }, + "guid": { + "type": "string", + "format": "guid" + }, + "signature": { + "type": "string", + "nullable": true + } } - } - }, - "SigningAttachment": { - "type": "object", - "properties": { - "fileName": { - "type": "string" - }, - "fileContent": { - "type": "string" + }, + "Skilabod": { + "type": "object", + "additionalProperties": false, + "properties": { + "skilabod": { + "type": "string", + "nullable": true + }, + "audkenni": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + } } - } - }, - "EventType": { - "type": "integer", - "description": "0 = AllSigned", - "x-enumNames": ["AllSigned"], - "enum": [0] - }, - "EventSignature": { - "type": "object", - "required": ["timeStamp", "guid"], - "properties": { - "timeStamp": { - "type": "integer", - "format": "int64" - }, - "guid": { - "type": "string", - "format": "guid" - }, - "signature": { - "type": "string" + }, + "LeyfiListi": { + "type": "object", + "additionalProperties": false, + "properties": { + "leyfi": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Leyfi" + } + }, + "villur": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Villur" + } + ] + } } - } - }, - "Skilabod": { - "type": "object", - "properties": { - "skilabod": { - "type": "string" - }, - "audkenni": { - "type": "string" - }, - "malsnumer": { - "type": "string" + }, + "Leyfi": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "titill": { + "type": "string", + "nullable": true + }, + "utgafudagur": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "utgefandi": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Utgefandi" + } + ] + }, + "stada": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Stada" + } + ] + } } - } - }, - "LeyfiListi": { - "type": "object", - "properties": { - "leyfi": { - "type": "array", - "items": { - "$ref": "#/definitions/Leyfi" + }, + "Utgefandi": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "titill": { + "type": "string", + "nullable": true } - }, - "villur": { - "$ref": "#/definitions/Villur" } - } - }, - "Leyfi": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "titill": { - "type": "string" - }, - "utgafudagur": { - "type": "string", - "format": "date-time" - }, - "utgefandi": { - "$ref": "#/definitions/Utgefandi" - }, - "stada": { - "$ref": "#/definitions/Stada" + }, + "Stada": { + "type": "object", + "additionalProperties": false, + "properties": { + "titill": { + "type": "string", + "nullable": true + }, + "kodi": { + "type": "string", + "nullable": true + } } - } - }, - "Utgefandi": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "titill": { - "type": "string" + }, + "Villur": { + "type": "object", + "additionalProperties": false, + "properties": { + "kodi": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + } } - } - }, - "Stada": { - "type": "object", - "properties": { - "titill": { - "type": "string" - }, - "kodi": { - "type": "string" + }, + "LeyfiStakt": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "leyfi": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Leyfi" + } + ] + }, + "svid": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Svid" + } + }, + "textar": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Textar" + } + ] + }, + "adgerdir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Adgerd" + } + }, + "skrar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Skra" + } + }, + "villur": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Villur" + } + ] + } } - } - }, - "Villur": { - "type": "object", - "properties": { - "kodi": { - "type": "string" - }, - "skilabod": { - "type": "string" + }, + "Svid": { + "type": "object", + "additionalProperties": false, + "properties": { + "heiti": { + "type": "string", + "nullable": true + }, + "gildi": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + } } - } - }, - "LeyfiStakt": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "leyfi": { - "$ref": "#/definitions/Leyfi" - }, - "svid": { - "type": "array", - "items": { - "$ref": "#/definitions/Svid" + }, + "Textar": { + "type": "object", + "additionalProperties": false, + "properties": { + "haus": { + "type": "string", + "nullable": true + }, + "fotur": { + "type": "string", + "nullable": true } - }, - "textar": { - "$ref": "#/definitions/Textar" - }, - "adgerdir": { - "type": "array", - "items": { - "$ref": "#/definitions/Adgerd" + } + }, + "Adgerd": { + "type": "object", + "additionalProperties": false, + "properties": { + "tegund": { + "type": "string", + "nullable": true + }, + "titill": { + "type": "string", + "nullable": true + }, + "slod": { + "type": "string", + "nullable": true } - }, - "skrar": { - "type": "array", - "items": { - "$ref": "#/definitions/Skra" + } + }, + "Skra": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "skraarnafn": { + "type": "string", + "nullable": true } - }, - "villur": { - "$ref": "#/definitions/Villur" } - } - }, - "Svid": { - "type": "object", - "properties": { - "heiti": { - "type": "string" - }, - "gildi": { - "type": "string" - }, - "tegund": { - "type": "string" + }, + "SyslSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "gognSkeytis": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/SyslGagnaSkeyti" + } + ] + } } - } - }, - "Textar": { - "type": "object", - "properties": { - "haus": { - "type": "string" - }, - "fotur": { - "type": "string" + }, + "SyslGagnaSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skeytaHeiti": { + "type": "string", + "nullable": true + }, + "adilar": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Adili" + } + }, + "attachments": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/VidhengiSkra" + } + }, + "gagnaMengi": { + "type": "object", + "nullable": true, + "additionalProperties": { + "type": "string" + } + } } - } - }, - "Adgerd": { - "type": "object", - "properties": { - "tegund": { - "type": "string" - }, - "titill": { - "type": "string" - }, - "slod": { - "type": "string" + }, + "Adili": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "simi": { + "type": "string", + "nullable": true + }, + "tolvupostur": { + "type": "string", + "nullable": true + }, + "heimilisfang": { + "type": "string", + "nullable": true + }, + "postaritun": { + "type": "string", + "nullable": true + }, + "sveitafelag": { + "type": "string", + "nullable": true + }, + "undirritad": { + "type": "boolean" + }, + "tegund": { + "$ref": "#/components/schemas/AdiliTegund" + } } - } - }, - "Skra": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "skraarnafn": { - "type": "string" + }, + "AdiliTegund": { + "type": "integer", + "description": "0 = Malshefjandi\n1 = Gagnadili\n2 = Barn", + "x-enumNames": ["Malshefjandi", "Gagnadili", "Barn"], + "enum": [0, 1, 2] + }, + "VidhengiSkra": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafnSkraar": { + "type": "string", + "nullable": true + }, + "innihaldSkraar": { + "type": "string", + "nullable": true + } } - } - }, - "SyslSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "gognSkeytis": { - "$ref": "#/definitions/SyslGagnaSkeyti" + }, + "StadaUndirritunarSkjalsSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + }, + "stadaUndirritunar": { + "$ref": "#/components/schemas/StadaUndirritunar" + } } - } - }, - "SyslGagnaSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skeytaHeiti": { - "type": "string" - }, - "adilar": { - "type": "array", - "items": { - "$ref": "#/definitions/Adili" + }, + "StadaUndirritunar": { + "type": "integer", + "description": "0 = EkkiUndirritad\n1 = Hafnad\n2 = Undirritad\n3 = EkkiUndirritadVilla\n4 = EkkiUndirritadUtrunnid", + "x-enumNames": [ + "EkkiUndirritad", + "Hafnad", + "Undirritad", + "EkkiUndirritadVilla", + "EkkiUndirritadUtrunnid" + ], + "enum": [0, 1, 2, 3, 4] + }, + "StadaUndirritunarSkjalsSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "skjalasnid": { + "type": "string", + "nullable": true + }, + "kennitalaUndirritanda": { + "type": "string", + "nullable": true } - }, - "attachments": { - "type": "array", - "items": { - "$ref": "#/definitions/VidhengiSkra" + } + }, + "StaediskortamalSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "skilabod": { + "type": "string", + "nullable": true } - }, - "gagnaMengi": { - "type": "object", - "additionalProperties": { - "type": "string" + } + }, + "Staediskortamal": { + "type": "object", + "additionalProperties": false, + "properties": { + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "nafn": { + "type": "string", + "nullable": true + }, + "tegundMalsadila": { + "type": "string", + "nullable": true + }, + "undirtegund": { + "type": "string", + "nullable": true + }, + "tegund": { + "type": "string", + "nullable": true + }, + "stada": { + "type": "string", + "nullable": true + }, + "malalok": { + "type": "string", + "nullable": true + }, + "mottekidDagsetning": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "malalokDagsetning": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "gildistimi": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "utgafudagur": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "utgefandi": { + "type": "string", + "nullable": true } } - } - }, - "Adili": { - "type": "object", - "required": ["undirritad", "tegund"], - "properties": { - "id": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "simi": { - "type": "string" - }, - "tolvupostur": { - "type": "string" - }, - "heimilisfang": { - "type": "string" - }, - "postaritun": { - "type": "string" - }, - "sveitafelag": { - "type": "string" - }, - "undirritad": { - "type": "boolean" - }, - "tegund": { - "$ref": "#/definitions/AdiliTegund" + }, + "StofnaskjalOgSendaTilUndirritunarSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + } } - } - }, - "AdiliTegund": { - "type": "integer", - "description": "0 = Malshefjandi\n1 = Gagnadili\n2 = Barn", - "x-enumNames": ["Malshefjandi", "Gagnadili", "Barn"], - "enum": [0, 1, 2] - }, - "VidhengiSkra": { - "type": "object", - "properties": { - "nafnSkraar": { - "type": "string" - }, - "innihaldSkraar": { - "type": "string" + }, + "StofnaskjalOgSendaTilUndirritunarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitalaMalsadila": { + "type": "string", + "nullable": true + }, + "skjalasnid": { + "type": "string", + "nullable": true + }, + "gildirTil": { + "type": "string", + "format": "date-time" + }, + "smsTexti": { + "type": "string", + "nullable": true + } } - } - }, - "StadaUndirritunarSkjalsSvarSkeyti": { - "type": "object", - "required": ["stadaUndirritunar"], - "properties": { - "audkenni": { - "type": "string" - }, - "skilabod": { - "type": "string" - }, - "stadaUndirritunar": { - "$ref": "#/definitions/StadaUndirritunar" + }, + "SyslSekjaSkra": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "malsnumer": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + }, + "skraarnafn": { + "type": "string", + "nullable": true + } } - } - }, - "StadaUndirritunar": { - "type": "integer", - "description": "0 = EkkiUndirritad\n1 = Hafnad\n2 = Undirritad\n3 = EkkiUndirritadVilla\n4 = EkkiUndirritadUtrunnid", - "x-enumNames": [ - "EkkiUndirritad", - "Hafnad", - "Undirritad", - "EkkiUndirritadVilla", - "EkkiUndirritadUtrunnid" - ], - "enum": [0, 1, 2, 3, 4] - }, - "StadaUndirritunarSkjalsSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "malsnumer": { - "type": "string" - }, - "skjalasnid": { - "type": "string" - }, - "kennitalaUndirritanda": { - "type": "string" + }, + "VedbandayfirlitMargirSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabodOgSkra": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SkilaSkeyti" + } + } } - } - }, - "StaediskortamalSvarSkeyti": { - "type": "object", - "properties": { - "skilabod": { - "type": "string" + }, + "SkilaSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "fastanumer": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + }, + "vedbandayfirlitPDFSkra": { + "type": "string", + "nullable": true + } } - } - }, - "Staediskortamal": { - "type": "object", - "properties": { - "malsnumer": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "nafn": { - "type": "string" - }, - "tegundMalsadila": { - "type": "string" - }, - "undirtegund": { - "type": "string" - }, - "tegund": { - "type": "string" - }, - "stada": { - "type": "string" - }, - "malalok": { - "type": "string" - }, - "mottekidDagsetning": { - "type": "string", - "format": "date-time" - }, - "malalokDagsetning": { - "type": "string", - "format": "date-time" - }, - "gildistimi": { - "type": "string", - "format": "date-time" - }, - "utgafudagur": { - "type": "string", - "format": "date-time" - }, - "utgefandi": { - "type": "string" + }, + "VedbandayfirlitMargirSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "eignir": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Eign" + } + } } - } - }, - "StofnaskjalOgSendaTilUndirritunarSvarSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skilabod": { - "type": "string" + }, + "Eign": { + "type": "object", + "additionalProperties": false, + "properties": { + "fastanumer": { + "type": "string", + "nullable": true + }, + "tegundAndlags": { + "$ref": "#/components/schemas/VedbondTegundAndlags" + } } - } - }, - "StofnaskjalOgSendaTilUndirritunarSkeyti": { - "type": "object", - "required": ["gildirTil"], - "properties": { - "audkenni": { - "type": "string" - }, - "malsnumer": { - "type": "string" - }, - "kennitalaMalsadila": { - "type": "string" - }, - "skjalasnid": { - "type": "string" - }, - "gildirTil": { - "type": "string", - "format": "date-time" - }, - "smsTexti": { - "type": "string" + }, + "VedbondTegundAndlags": { + "type": "integer", + "description": "0 = Fasteign\n1 = Okutaeki\n2 = Skip\n3 = Lausafe\n4 = Loftfar\n5 = Oskrad", + "x-enumNames": [ + "Fasteign", + "Okutaeki", + "Skip", + "Lausafe", + "Loftfar", + "Oskrad" + ], + "enum": [0, 1, 2, 3, 4, 5] + }, + "VedbandayfirlitSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "skilabod": { + "type": "string", + "nullable": true + }, + "vedbandayfirlitPDFSkra": { + "type": "string", + "nullable": true + } } - } - }, - "SyslSekjaSkra": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "malsnumer": { - "type": "string" - }, - "kennitala": { - "type": "string" - }, - "skraarnafn": { - "type": "string" + }, + "VedbandayfirlitSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "audkenni": { + "type": "string", + "nullable": true + }, + "fastanumer": { + "type": "string", + "nullable": true + }, + "tegundAndlags": { + "$ref": "#/components/schemas/VedbondTegundAndlags" + } } - } - }, - "VedbandayfirlitMargirSvarSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skilabodOgSkra": { - "type": "array", - "items": { - "$ref": "#/definitions/SkilaSkeyti" + }, + "VedbandayfirlitRegluverkGeneralSvar": { + "type": "object", + "additionalProperties": false, + "properties": { + "fastanum": { + "type": "string", + "nullable": true + }, + "tegundEignar": { + "type": "string", + "nullable": true + }, + "fasteign": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/VedbandayfirlitReguverkiSvarSkeyti" + } + }, + "okutaeki": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Okutaeki" + } + ] + }, + "skip": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Skip" + } + ] } } - } - }, - "SkilaSkeyti": { - "type": "object", - "properties": { - "fastanumer": { - "type": "string" - }, - "skilabod": { - "type": "string" - }, - "vedbandayfirlitPDFSkra": { - "type": "string" + }, + "VedbandayfirlitReguverkiSvarSkeyti": { + "type": "object", + "additionalProperties": false, + "properties": { + "fastnum": { + "type": "string", + "nullable": true + }, + "landNr": { + "type": "integer", + "format": "int32" + }, + "heiti": { + "type": "string", + "nullable": true + }, + "svfn": { + "type": "string", + "nullable": true + }, + "svetiarfelag": { + "type": "string", + "nullable": true + }, + "notkun": { + "type": "string", + "nullable": true + }, + "eining": { + "type": "string", + "nullable": true + }, + "byggd": { + "type": "string", + "nullable": true + }, + "embaetti": { + "type": "string", + "nullable": true + }, + "embaettiNumer": { + "type": "string", + "nullable": true + } } - } - }, - "VedbandayfirlitMargirSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "eignir": { - "type": "array", - "items": { - "$ref": "#/definitions/Eign" + }, + "Skip": { + "type": "object", + "additionalProperties": false, + "properties": { + "shipRegistrationNumber": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "isOpen": { + "type": "boolean" + }, + "usageType": { + "type": "string", + "nullable": true + }, + "operationArea": { + "type": "string", + "nullable": true + }, + "imoNumber": { + "type": "string", + "nullable": true + }, + "status": { + "type": "string", + "nullable": true + }, + "isLegallyStaffed": { + "type": "boolean" + }, + "initialRegistrationDate": { + "type": "string", + "format": "date-time" + }, + "constructionYear": { + "type": "integer", + "format": "int32" + }, + "seaworhiness": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Seaworhiness" + } + ] + }, + "identification": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Identification" + } + ] + }, + "mainMeasurements": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Mainmeasurements" + } + ] + }, + "crew": { + "type": "array", + "nullable": true, + "items": { + "type": "object" + } + }, + "owners": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Owner" + } + }, + "passengerPermits": { + "type": "array", + "nullable": true, + "items": { + "type": "object" + } + }, + "insurances": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Insurance" + } + }, + "engines": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/Engine" + } + }, + "fishery": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Fishery" + } + ] + }, + "constructionPlace": { + "type": "string", + "nullable": true + }, + "constructionStation": { + "type": "string", + "nullable": true + }, + "constructionCountry": { + "type": "string", + "nullable": true + }, + "constructionNumber": { + "type": "string", + "nullable": true + }, + "identificationRegistrationDate": { + "type": "string", + "format": "date-time" + }, + "changeDate": { + "type": "string", + "format": "date-time" + }, + "hullMaterial": { + "type": "string", + "nullable": true + }, + "classificationSociety": { + "type": "string", + "nullable": true + }, + "propellerCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "auxiliaryEnginePowerKiloWatts": { + "type": "number", + "format": "float", + "nullable": true + }, + "acOrDc": { + "type": "string", + "nullable": true + }, + "previousNameOfShip": { + "type": "string", + "nullable": true + }, + "powerIndicator": { + "type": "number", + "format": "float", + "nullable": true + }, + "otherInfo": { + "type": "string", + "nullable": true + }, + "maxPropellerDiameter": { + "type": "number", + "format": "float", + "nullable": true + }, + "powerKW": { + "type": "number", + "format": "float", + "nullable": true + }, + "voltage": { + "type": "string", + "nullable": true + }, + "comments": { + "type": "string", + "nullable": true + }, + "legallyStaffed": { + "type": "boolean" + }, + "open": { + "type": "boolean" } } - } - }, - "Eign": { - "type": "object", - "required": ["tegundAndlags"], - "properties": { - "fastanumer": { - "type": "string" - }, - "tegundAndlags": { - "$ref": "#/definitions/VedbondTegundAndlags" - } - } - }, - "VedbondTegundAndlags": { - "type": "integer", - "description": "0 = Fasteign\n1 = Okutaeki\n2 = Skip\n3 = Lausafe\n4 = Loftfar\n5 = Oskrad", - "x-enumNames": [ - "Fasteign", - "Okutaeki", - "Skip", - "Lausafe", - "Loftfar", - "Oskrad" - ], - "enum": [0, 1, 2, 3, 4, 5] - }, - "VedbandayfirlitSvarSkeyti": { - "type": "object", - "properties": { - "audkenni": { - "type": "string" - }, - "skilabod": { - "type": "string" - }, - "vedbandayfirlitPDFSkra": { - "type": "string" - } - } - }, - "VedbandayfirlitSkeyti": { - "type": "object", - "required": ["tegundAndlags"], - "properties": { - "audkenni": { - "type": "string" - }, - "fastanumer": { - "type": "string" - }, - "tegundAndlags": { - "$ref": "#/definitions/VedbondTegundAndlags" - } - } - }, - "VedbandayfirlitRegluverkGeneralSvar": { - "type": "object", - "properties": { - "fastanum": { - "type": "string" - }, - "tegundEignar": { - "type": "string" - }, - "fasteign": { - "type": "array", - "items": { - "$ref": "#/definitions/VedbandayfirlitReguverkiSvarSkeyti" + }, + "Seaworhiness": { + "type": "object", + "additionalProperties": false, + "properties": { + "isValid": { + "type": "boolean" + }, + "validFrom": { + "type": "string", + "format": "date-time" + }, + "validTo": { + "type": "string", + "format": "date-time" + }, + "extendedValidTo": { + "type": "string", + "nullable": true + }, + "valid": { + "type": "boolean" } - }, - "okutaeki": { - "$ref": "#/definitions/Okutaeki" - }, - "skip": { - "$ref": "#/definitions/Skip" - } - } - }, - "VedbandayfirlitReguverkiSvarSkeyti": { - "type": "object", - "required": ["landNr"], - "properties": { - "fastnum": { - "type": "string" - }, - "landNr": { - "type": "integer", - "format": "int32" - }, - "heiti": { - "type": "string" - }, - "svfn": { - "type": "string" - }, - "svetiarfelag": { - "type": "string" - }, - "notkun": { - "type": "string" - }, - "eining": { - "type": "string" - }, - "byggd": { - "type": "string" - }, - "embaetti": { - "type": "string" - }, - "embaettiNumer": { - "type": "string" } - } - }, - "Skip": { - "type": "object", - "required": [ - "shipRegistrationNumber", - "isOpen", - "isLegallyStaffed", - "initialRegistrationDate", - "constructionYear", - "identificationRegistrationDate", - "changeDate", - "legallyStaffed", - "open" - ], - "properties": { - "shipRegistrationNumber": { - "type": "integer", - "format": "int32" - }, - "name": { - "type": "string" - }, - "isOpen": { - "type": "boolean" - }, - "usageType": { - "type": "string" - }, - "operationArea": { - "type": "string" - }, - "imoNumber": { - "type": "string" - }, - "status": { - "type": "string" - }, - "isLegallyStaffed": { - "type": "boolean" - }, - "initialRegistrationDate": { - "type": "string", - "format": "date-time" - }, - "constructionYear": { - "type": "integer", - "format": "int32" - }, - "seaworhiness": { - "$ref": "#/definitions/Seaworhiness" - }, - "identification": { - "$ref": "#/definitions/Identification" - }, - "mainMeasurements": { - "$ref": "#/definitions/Mainmeasurements" - }, - "crew": { - "type": "array", - "items": {} - }, - "owners": { - "type": "array", - "items": { - "$ref": "#/definitions/Owner" - } - }, - "passengerPermits": { - "type": "array", - "items": {} - }, - "insurances": { - "type": "array", - "items": { - "$ref": "#/definitions/Insurance" - } - }, - "engines": { - "type": "array", - "items": { - "$ref": "#/definitions/Engine" + }, + "Identification": { + "type": "object", + "additionalProperties": false, + "properties": { + "homeHarbor": { + "type": "string", + "nullable": true + }, + "regionName": { + "type": "string", + "nullable": true + }, + "regionAcronym": { + "type": "string", + "nullable": true + }, + "regionNumber": { + "type": "string", + "nullable": true + }, + "callSign": { + "type": "string", + "nullable": true } - }, - "fishery": { - "$ref": "#/definitions/Fishery" - }, - "constructionPlace": { - "type": "string" - }, - "constructionStation": { - "type": "string" - }, - "constructionCountry": { - "type": "string" - }, - "constructionNumber": { - "type": "string" - }, - "identificationRegistrationDate": { - "type": "string", - "format": "date-time" - }, - "changeDate": { - "type": "string", - "format": "date-time" - }, - "hullMaterial": { - "type": "string" - }, - "classificationSociety": { - "type": "string" - }, - "propellerCount": { - "type": "integer", - "format": "int32" - }, - "auxiliaryEnginePowerKiloWatts": { - "type": "number", - "format": "float" - }, - "acOrDc": { - "type": "string" - }, - "previousNameOfShip": { - "type": "string" - }, - "powerIndicator": { - "type": "number", - "format": "float" - }, - "otherInfo": { - "type": "string" - }, - "maxPropellerDiameter": { - "type": "number", - "format": "float" - }, - "powerKW": { - "type": "number", - "format": "float" - }, - "voltage": { - "type": "string" - }, - "comments": { - "type": "string" - }, - "legallyStaffed": { - "type": "boolean" - }, - "open": { - "type": "boolean" - } - } - }, - "Seaworhiness": { - "type": "object", - "required": ["isValid", "validFrom", "validTo", "valid"], - "properties": { - "isValid": { - "type": "boolean" - }, - "validFrom": { - "type": "string", - "format": "date-time" - }, - "validTo": { - "type": "string", - "format": "date-time" - }, - "extendedValidTo": { - "type": "string" - }, - "valid": { - "type": "boolean" } - } - }, - "Identification": { - "type": "object", - "properties": { - "homeHarbor": { - "type": "string" - }, - "regionName": { - "type": "string" - }, - "regionAcronym": { - "type": "string" - }, - "regionNumber": { - "type": "string" - }, - "callSign": { - "type": "string" + }, + "Mainmeasurements": { + "type": "object", + "additionalProperties": false, + "properties": { + "length": { + "type": "number", + "format": "float", + "nullable": true + }, + "mostLength": { + "type": "number", + "format": "float", + "nullable": true + }, + "width": { + "type": "number", + "format": "float", + "nullable": true + }, + "depth": { + "type": "number", + "format": "float", + "nullable": true + }, + "draft": { + "type": "number", + "format": "float", + "nullable": true + }, + "bruttoGrt": { + "type": "number", + "format": "float", + "nullable": true + }, + "bruttoWeightTons": { + "type": "number", + "format": "float", + "nullable": true + }, + "nettoWeightTons": { + "type": "number", + "format": "float", + "nullable": true + } } - } - }, - "Mainmeasurements": { - "type": "object", - "properties": { - "length": { - "type": "number", - "format": "float" - }, - "mostLength": { - "type": "number", - "format": "float" - }, - "width": { - "type": "number", - "format": "float" - }, - "depth": { - "type": "number", - "format": "float" - }, - "draft": { - "type": "number", - "format": "float" - }, - "bruttoGrt": { - "type": "number", - "format": "float" - }, - "bruttoWeightTons": { - "type": "number", - "format": "float" - }, - "nettoWeightTons": { - "type": "number", - "format": "float" + }, + "Owner": { + "type": "object", + "additionalProperties": false, + "properties": { + "percentage": { + "type": "string", + "nullable": true + }, + "nationalIdentificationNumber": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "registrationDate": { + "type": "string", + "format": "date-time" + }, + "lastUpdated": { + "type": "string", + "format": "date-time" + }, + "documentTitle": { + "type": "string", + "nullable": true + }, + "address": { + "type": "string", + "nullable": true + }, + "postalCode": { + "type": "string", + "nullable": true + }, + "foreign": { + "type": "boolean" + }, + "isForeign": { + "type": "boolean" + } } - } - }, - "Owner": { - "type": "object", - "required": ["registrationDate", "lastUpdated", "foreign", "isForeign"], - "properties": { - "percentage": { - "type": "string" - }, - "nationalIdentificationNumber": { - "type": "string" - }, - "name": { - "type": "string" - }, - "registrationDate": { - "type": "string", - "format": "date-time" - }, - "lastUpdated": { - "type": "string", - "format": "date-time" - }, - "documentTitle": { - "type": "string" - }, - "address": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "foreign": { - "type": "boolean" - }, - "isForeign": { - "type": "boolean" + }, + "Insurance": { + "type": "object", + "additionalProperties": false, + "properties": { + "insuranceRegistrationNumber": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "validFrom": { + "type": "string", + "format": "date-time" + }, + "validTo": { + "type": "string", + "format": "date-time" + }, + "enabled": { + "type": "boolean" + }, + "numberOfInsured": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "comment": { + "type": "string", + "nullable": true + }, + "amountISK": { + "type": "number", + "format": "float", + "nullable": true + }, + "insuranceType": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Insurancetype" + } + ] + }, + "insuranceCompany": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Insurancecompany" + } + ] + } } - } - }, - "Insurance": { - "type": "object", - "required": ["validFrom", "validTo", "enabled"], - "properties": { - "insuranceRegistrationNumber": { - "type": "integer", - "format": "int32" - }, - "validFrom": { - "type": "string", - "format": "date-time" - }, - "validTo": { - "type": "string", - "format": "date-time" - }, - "enabled": { - "type": "boolean" - }, - "numberOfInsured": { - "type": "integer", - "format": "int32" - }, - "comment": { - "type": "string" - }, - "amountISK": { - "type": "number", - "format": "float" - }, - "insuranceType": { - "$ref": "#/definitions/Insurancetype" - }, - "insuranceCompany": { - "$ref": "#/definitions/Insurancecompany" + }, + "Insurancetype": { + "type": "object", + "additionalProperties": false, + "properties": { + "insuranceTypeRegistrationNumber": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "code": { + "type": "string", + "nullable": true + } } - } - }, - "Insurancetype": { - "type": "object", - "required": ["insuranceTypeRegistrationNumber"], - "properties": { - "insuranceTypeRegistrationNumber": { - "type": "integer", - "format": "int32" - }, - "name": { - "type": "string" - }, - "code": { - "type": "string" + }, + "Insurancecompany": { + "type": "object", + "additionalProperties": false, + "properties": { + "insuranceCompanyRegistrationNumber": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string", + "nullable": true + }, + "nationalIdentificationNumber": { + "type": "string", + "nullable": true + } } - } - }, - "Insurancecompany": { - "type": "object", - "required": ["insuranceCompanyRegistrationNumber"], - "properties": { - "insuranceCompanyRegistrationNumber": { - "type": "integer", - "format": "int32" - }, - "name": { - "type": "string" - }, - "nationalIdentificationNumber": { - "type": "string" + }, + "Engine": { + "type": "object", + "additionalProperties": false, + "properties": { + "manufacturingNumber": { + "type": "string", + "nullable": true + }, + "power": { + "type": "number", + "format": "float" + }, + "year": { + "type": "integer", + "format": "int32" + }, + "usage": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Usage" + } + ] + }, + "manufacturer": { + "nullable": true, + "oneOf": [ + { + "$ref": "#/components/schemas/Manufacturer" + } + ] + } } - } - }, - "Engine": { - "type": "object", - "required": ["power", "year"], - "properties": { - "manufacturingNumber": { - "type": "string" - }, - "power": { - "type": "number", - "format": "float" - }, - "year": { - "type": "integer", - "format": "int32" - }, - "usage": { - "$ref": "#/definitions/Usage" - }, - "manufacturer": { - "$ref": "#/definitions/Manufacturer" + }, + "Usage": { + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "nullable": true + } } - } - }, - "Usage": { - "type": "object", - "properties": { - "name": { - "type": "string" + }, + "Manufacturer": { + "type": "object", + "additionalProperties": false, + "properties": { + "code": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } } - } - }, - "Manufacturer": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "name": { - "type": "string" + }, + "Fishery": { + "type": "object", + "additionalProperties": false, + "properties": { + "identityNumber": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "address": { + "type": "string", + "nullable": true + }, + "postalCode": { + "type": "string", + "nullable": true + } } - } - }, - "Fishery": { - "type": "object", - "properties": { - "identityNumber": { - "type": "string" - }, - "name": { - "type": "string" - }, - "address": { - "type": "string" - }, - "postalCode": { - "type": "string" + }, + "Verdbrefamidlari": { + "type": "object", + "additionalProperties": false, + "properties": { + "nafn": { + "type": "string", + "nullable": true + }, + "kennitala": { + "type": "string", + "nullable": true + } } } }, - "Verdbrefamidlari": { - "type": "object", - "properties": { - "nafn": { - "type": "string" - }, - "kennitala": { - "type": "string" - } + "securitySchemes": { + "Bearer": { + "type": "apiKey", + "description": "Copy this into the value field: Bearer {token}", + "name": "Authorization", + "in": "header" + }, + "JWTToken": { + "type": "apiKey", + "description": "Copy this into the value field: Bearer {token}", + "name": "Authorization", + "in": "header" } } }, - "securityDefinitions": { - "Bearer": { - "type": "apiKey", - "description": "Copy this into the value field: Bearer {token}", - "name": "Authorization", - "in": "header" - }, - "JWT Token": { - "type": "apiKey", - "description": "Copy this into the value field: Bearer {token}", - "name": "Authorization", - "in": "header" - } - }, "security": [ { "Bearer": [] }, { - "JWT Token": [] + "JWTToken": [] } ] } diff --git a/libs/clients/syslumenn/src/lib/__mock-data__/responses.ts b/libs/clients/syslumenn/src/lib/__mock-data__/responses.ts index f88d8d8ea85d..752168e10ebf 100644 --- a/libs/clients/syslumenn/src/lib/__mock-data__/responses.ts +++ b/libs/clients/syslumenn/src/lib/__mock-data__/responses.ts @@ -128,7 +128,7 @@ export const OPERATING_LICENSE_SERVICE_RES = [ afgr_Afgengis_Virkirdagar_Utiveitingar: 'string', afgr_Afgengis_Adfaranott_Fridaga_Utiveitingar: 'string', }, -] as any[] // This return object has no type, see clientConfig.json +] as const // This return object has no type, see clientConfig.json export const ALCOHOL_LICENCES = [ { diff --git a/libs/clients/syslumenn/src/lib/syslumenn.spec.ts b/libs/clients/syslumenn/src/lib/syslumenn.spec.ts index f8224a623b10..dc0007206294 100644 --- a/libs/clients/syslumenn/src/lib/syslumenn.spec.ts +++ b/libs/clients/syslumenn/src/lib/syslumenn.spec.ts @@ -68,7 +68,6 @@ const ATTACHMENTS = [ const VALID_ESTATE_APPLICANT = '0101302399' const VALID_DEPARTED_PERSON = '0101302399' -const INVALID_ESTATE_APPLICANT = '0101303019' const config = defineConfig({ name: 'SyslumennApi', diff --git a/libs/clients/syslumenn/src/lib/syslumennClient.service.ts b/libs/clients/syslumenn/src/lib/syslumennClient.service.ts index d606178c5ff7..b515f1721a61 100644 --- a/libs/clients/syslumenn/src/lib/syslumennClient.service.ts +++ b/libs/clients/syslumenn/src/lib/syslumennClient.service.ts @@ -107,7 +107,7 @@ export class SyslumennService { } const { audkenni, accessToken } = await api.innskraningPost({ - notandi: config, + apiNotandi: config, }) if (audkenni && accessToken) { return { @@ -255,7 +255,7 @@ export class SyslumennService { const { id, api } = await this.createApi() const explanation = 'Rafrænt undirritað vottorð' return await api.innsiglaSkjolPost({ - skeyti: { + innsiglaSkjolSkeyti: { audkenni: id, skyring: explanation, skjol: documents, @@ -267,7 +267,7 @@ export class SyslumennService { const { id, api } = await this.createApi() const explanation = 'Rafrænt undirritað vottorð' return await api.innsiglunPost({ - skeyti: { + innsiglaSkeyti: { audkenni: id, skyring: explanation, skjal: document, @@ -365,10 +365,10 @@ export class SyslumennService { const { id, api } = await this.createApi() const response = await api .vedbokavottordRegluverkiPost({ - skilabod: { + vedbandayfirlitSkeyti: { audkenni: id, fastanumer: cleanPropertyNumber(assetId), - tegundAndlags: assetType as number, + tegundAndlags: assetType as unknown as VedbondTegundAndlags, }, }) .catch((e) => { @@ -411,7 +411,7 @@ export class SyslumennService { const { id, api } = await this.createApi() const res = await api.vedbokarvottord2Post({ - skilabod: { + vedbandayfirlitMargirSkeyti: { audkenni: id, eignir: properties.map(({ propertyNumber, propertyType }) => { return { @@ -432,8 +432,8 @@ export class SyslumennService { const contentBase64 = resultItem.vedbandayfirlitPDFSkra || '' return { contentBase64: contentBase64, - apiMessage: resultItem.skilabod, - propertyNumber: resultItem.fastanumer, + apiMessage: resultItem.skilabod ?? undefined, + propertyNumber: resultItem.fastanumer ?? undefined, } }) ?? [] @@ -465,7 +465,7 @@ export class SyslumennService { const res = await api .vedbokavottordRegluverkiPost({ - skilabod: { + vedbandayfirlitSkeyti: { audkenni: id, fastanumer: cleanPropertyNumber(propertyNumber), tegundAndlags: VedbondTegundAndlags.NUMBER_0, // 0 = Real estate @@ -487,7 +487,7 @@ export class SyslumennService { unitsOfUse: { unitsOfUse: [ { - explanation: fasteign?.notkun, + explanation: fasteign?.notkun ?? undefined, }, ], }, @@ -502,7 +502,7 @@ export class SyslumennService { const res = await api .vedbokavottordRegluverkiPost({ - skilabod: { + vedbandayfirlitSkeyti: { audkenni: id, fastanumer: propertyType === '0' @@ -523,8 +523,8 @@ export class SyslumennService { }) return { - propertyNumber: res.fastanum, - propertyType: res.tegundEignar, + propertyNumber: res.fastanum ?? undefined, // Removes nulls with ?? undefined + propertyType: res.tegundEignar ?? undefined, realEstate: res.fasteign ? res.fasteign.map(mapRealEstateResponse) : [], vehicle: res.okutaeki ? mapVehicleResponse(res.okutaeki) : undefined, ship: res.skip ? mapShipResponse(res.skip) : undefined, @@ -562,7 +562,7 @@ export class SyslumennService { async getRegistryPerson(nationalId: string): Promise { const { id, api } = await this.createApi() const res = await api.leitaAdKennitoluIThjodskraPost({ - skeyti: { + thjodskraSkeyti: { audkenni: id, kennitala: nationalId, }, @@ -603,7 +603,7 @@ export class SyslumennService { ): Promise { const { id, api } = await this.createApi() const res = await api.skiptaUmSkraningaradilaDanarbusPost({ - payload: { + skiptaUmSkraningaradili: { audkenni: id, kennitalaFra: currentRegistrantNationalId, kennitalaTil: newRegistrantNationalId, diff --git a/libs/clients/syslumenn/src/lib/syslumennClient.utils.ts b/libs/clients/syslumenn/src/lib/syslumennClient.utils.ts index 152317946ab1..0a5258f72ced 100644 --- a/libs/clients/syslumenn/src/lib/syslumennClient.utils.ts +++ b/libs/clients/syslumenn/src/lib/syslumennClient.utils.ts @@ -10,7 +10,6 @@ import { VedbandayfirlitReguverkiSvarSkeyti, SkraningaradiliDanarbusSkeyti, TegundAndlags, - DanarbuUppl, DanarbuUpplRadstofun, EignirDanarbus, Fasteignasalar, @@ -111,16 +110,16 @@ export const mapVehicleResponse = (response: Okutaeki): VehicleDetail => { manufacturer: response.framleidandi ?? '', manufacturerType: response.framleidandaGerd ?? '', color: response.litur ?? '', - dateOfRegistration: response.skraningardagur, + dateOfRegistration: response.skraningardagur ?? new Date(), } } export const mapShipResponse = (response: Skip): ShipDetail => { return { - shipRegistrationNumber: response.shipRegistrationNumber.toString(), + shipRegistrationNumber: response.shipRegistrationNumber?.toString() ?? '', usageType: response.usageType ?? '', name: response.name ?? '', - initialRegistrationDate: response.initialRegistrationDate, + initialRegistrationDate: response.initialRegistrationDate ?? new Date(), mainMeasurements: { length: response.mainMeasurements?.length?.toString() ?? '', bruttoWeightTons: @@ -147,9 +146,9 @@ export const mapCertificateInfo = ( response: VottordSkeyti, ): CertificateInfoResponse => { return { - nationalId: response.kennitala, - expirationDate: response.gildisTimi, - releaseDate: response.utgafudagur, + nationalId: response.kennitala ?? undefined, + expirationDate: response.gildisTimi ?? undefined, + releaseDate: response.utgafudagur ?? undefined, } } export const mapDataUploadResponse = ( @@ -157,9 +156,9 @@ export const mapDataUploadResponse = ( ): DataUploadResponse => { return { success: response.skilabod === UPLOAD_DATA_SUCCESS, - message: response.skilabod, - id: response.audkenni, - caseNumber: response.malsnumer, + message: response.skilabod ?? undefined, + id: response.audkenni ?? undefined, + caseNumber: response.malsnumer ?? undefined, } } @@ -171,8 +170,8 @@ export const mapHomestay = (homestay: VirkarHeimagistingar): Homestay => { manager: homestay.abyrgdarmadur ?? '', year: homestay.umsoknarAr ? parseInt(homestay.umsoknarAr) : undefined, city: homestay.sveitarfelag ?? '', - guests: homestay.gestafjoldi, - rooms: homestay.fjoldiHerbergja, + guests: homestay.gestafjoldi ?? undefined, + rooms: homestay.fjoldiHerbergja ?? undefined, propertyId: homestay.fastanumer ?? '', apartmentId: homestay.ibudanumer ?? '', } @@ -213,29 +212,30 @@ export const mapOperatingLicense = ( operatingLicense: VirkLeyfi, ): OperatingLicense => ({ id: operatingLicense.rowNum, - issuedBy: operatingLicense.utgefidAf, - licenseNumber: operatingLicense.leyfisnumer, - location: operatingLicense.stadur, - name: operatingLicense.kallast, - street: operatingLicense.gata, - postalCode: operatingLicense.postnumer, - type: operatingLicense.tegund, - type2: operatingLicense.tegund2, - restaurantType: operatingLicense.tegundVeitingastadar, - validFrom: operatingLicense.gildirFra, - validTo: operatingLicense.gildirTil, - licenseHolder: operatingLicense.leyfishafi, - licenseResponsible: operatingLicense.abyrgdarmadur, - category: operatingLicense.flokkur, - outdoorLicense: operatingLicense.leyfiTilUtiveitinga, - alcoholWeekdayLicense: operatingLicense.afgrAfgengisVirkirdagar, - alcoholWeekendLicense: operatingLicense.afgrAfgengisAdfaranottFridaga, + issuedBy: operatingLicense.utgefidAf ?? undefined, + licenseNumber: operatingLicense.leyfisnumer ?? undefined, + location: operatingLicense.stadur ?? undefined, + name: operatingLicense.kallast ?? undefined, + street: operatingLicense.gata ?? undefined, + postalCode: operatingLicense.postnumer ?? undefined, + type: operatingLicense.tegund ?? undefined, + type2: operatingLicense.tegund2 ?? undefined, + restaurantType: operatingLicense.tegundVeitingastadar ?? undefined, + validFrom: operatingLicense.gildirFra ?? undefined, + validTo: operatingLicense.gildirTil ?? undefined, + licenseHolder: operatingLicense.leyfishafi ?? undefined, + licenseResponsible: operatingLicense.abyrgdarmadur ?? undefined, + category: operatingLicense.flokkur ?? undefined, + outdoorLicense: operatingLicense.leyfiTilUtiveitinga ?? undefined, + alcoholWeekdayLicense: operatingLicense.afgrAfgengisVirkirdagar ?? undefined, + alcoholWeekendLicense: + operatingLicense.afgrAfgengisAdfaranottFridaga ?? undefined, alcoholWeekdayOutdoorLicense: - operatingLicense.afgrAfgengisVirkirdagarUtiveitingar, + operatingLicense.afgrAfgengisVirkirdagarUtiveitingar ?? undefined, alcoholWeekendOutdoorLicense: - operatingLicense.afgrAfgengisAdfaranottFridagaUtiveitingar, - maximumNumberOfGuests: operatingLicense.hamarksfjoldiGesta, - numberOfDiningGuests: operatingLicense.fjoldiGestaIVeitingum, + operatingLicense.afgrAfgengisAdfaranottFridagaUtiveitingar ?? undefined, + maximumNumberOfGuests: operatingLicense.hamarksfjoldiGesta ?? undefined, + numberOfDiningGuests: operatingLicense.fjoldiGestaIVeitingum ?? undefined, }) export const mapPaginationInfo = ( @@ -312,16 +312,16 @@ export const mapTemporaryEventLicence = ( location: temporaryEventLicence.stadur?.trim() ?? '', }) -export function constructUploadDataObject( +export const constructUploadDataObject = ( id: string, persons: Person[], attachments: Attachment[] | undefined, extraData: { [key: string]: string }, uploadDataName: string, uploadDataId?: string, -): SyslMottakaGognPostRequest { +): SyslMottakaGognPostRequest => { return { - payload: { + syslSkeyti: { audkenni: id, gognSkeytis: { audkenni: uploadDataId || uuid(), @@ -351,7 +351,7 @@ export function constructUploadDataObject( } } -function mapAdvocate(advocateRaw: Malsvari): Advocate { +const mapAdvocate = (advocateRaw: Malsvari): Advocate => { return { address: advocateRaw.heimilisfang ?? '', email: advocateRaw.netfang ?? '', @@ -361,7 +361,7 @@ function mapAdvocate(advocateRaw: Malsvari): Advocate { } } -function mapPersonEnum(e: PersonType) { +const mapPersonEnum = (e: PersonType) => { switch (e) { case PersonType.Plaintiff: return AdiliTegund.NUMBER_0 @@ -387,10 +387,10 @@ export const mapAssetName = ( export const mapVehicle = (response: Okutaeki): VehicleRegistration => { return { - licensePlate: response.numerOkutaekis, - modelName: response.framleidandaGerd, - manufacturer: response.framleidandi, - color: response.litur, + licensePlate: response.numerOkutaekis ?? undefined, + modelName: response.framleidandaGerd ?? undefined, + manufacturer: response.framleidandi ?? undefined, + color: response.litur ?? undefined, } } @@ -484,7 +484,7 @@ export const mapEstateRegistrant = ( marriageSettlement: syslaData.kaupmaili ?? false, office: syslaData.embaetti ?? '', caseNumber: syslaData.malsnumer ?? '', - dateOfDeath: syslaData.danardagur ?? '', + dateOfDeath: syslaData.danardagur ?? new Date(), nameOfDeceased: syslaData.nafnLatins ?? '', nationalIdOfDeceased: syslaData.kennitalaLatins ?? '', ownBusinessManagement: syslaData.eiginRekstur ?? false, @@ -540,7 +540,7 @@ export const mapEstateInfo = (syslaData: DanarbuUpplRadstofun): EstateInfo => { : new Date(), districtCommissionerHasWill: Boolean(syslaData?.erfdaskra), knowledgeOfOtherWills: syslaData.erfdakraVitneskja ? 'yes' : 'no', - marriageSettlement: syslaData.kaupmali, + marriageSettlement: syslaData.kaupmali ?? false, nameOfDeceased: syslaData?.nafn ?? '', nationalIdOfDeceased: syslaData?.kennitala ?? '', availableSettlements: mapAvailableSettlements(syslaData.mogulegSkipti), @@ -549,11 +549,11 @@ export const mapEstateInfo = (syslaData: DanarbuUpplRadstofun): EstateInfo => { export const mapMasterLicence = (licence: Meistaraleyfi): MasterLicence => { return { - name: licence.nafn, - dateOfPublication: licence.gildirFra, - profession: licence.idngrein, - office: licence.embaetti, - nationalId: licence.kennitala, + name: licence.nafn ?? undefined, + dateOfPublication: licence.gildirFra ?? undefined, + profession: licence.idngrein ?? undefined, + office: licence.embaetti ?? undefined, + nationalId: licence.kennitala ?? undefined, } } @@ -561,10 +561,10 @@ export const mapJourneymanLicence = ( licence: SveinsbrefModel, ): JourneymanLicence => { return { - name: licence.nafn, - dateOfPublication: licence.gildirFra, - profession: licence.idngrein, - nationalId: licence.kennitala, + name: licence.nafn ?? undefined, + dateOfPublication: licence.gildirFra ?? undefined, + profession: licence.idngrein ?? undefined, + nationalId: licence.kennitala ?? undefined, } } @@ -572,9 +572,9 @@ export const mapProfessionRight = ( professionRight: StarfsrettindiModel, ): ProfessionRight => { return { - name: professionRight.nafn, - profession: professionRight.starfsrettindi, - nationalId: professionRight.kennitala, + name: professionRight.nafn ?? undefined, + profession: professionRight.starfsrettindi ?? undefined, + nationalId: professionRight.kennitala ?? undefined, } } @@ -594,9 +594,9 @@ export const mapInheritanceTax = ( inheritance: ErfdafjarskatturSvar, ): InheritanceTax => { return { - inheritanceTax: inheritance.erfdafjarskattur, - taxExemptionLimit: inheritance.skattfrelsismorkUpphaed, - validFrom: inheritance.gildirFra, + inheritanceTax: inheritance.erfdafjarskattur ?? 0, + taxExemptionLimit: inheritance.skattfrelsismorkUpphaed ?? 0, + validFrom: inheritance.gildirFra ?? new Date(), } } @@ -614,7 +614,7 @@ const mapInheritanceReportAsset = ( return { description: lysing ?? '', assetNumber: fastanumer ?? '', - share: parseShare(eignarhlutfall) ?? 100, + share: parseShare(eignarhlutfall ?? 100), propertyValuation: fasteignamat ?? '', amount: upphaed ?? '', exchangeRateOrInterest: gengiVextir ?? '', @@ -629,10 +629,10 @@ const mapInheritanceReportHeirs = ( nationalId: heir.kennitala ?? '', relation: heir.tengsl ?? 'Annað', advocate: heir.malsvari ? mapAdvocate(heir.malsvari) : undefined, - email: heir.netfang, - phone: heir.simi, - relationWithApplicant: heir.tengsl, - address: heir.heimilisfang, + email: heir.netfang ?? undefined, + phone: heir.simi ?? undefined, + relationWithApplicant: heir.tengsl ?? undefined, + address: heir.heimilisfang ?? undefined, })) } @@ -761,14 +761,14 @@ export const mapEstateToInheritanceReportInfo = ( estate: DanarbuUpplErfdafjarskatt, ): InheritanceReportInfo => { return { - caseNumber: estate.malsnumer, - dateOfDeath: estate.danardagur, - will: estate.erfdaskra, + caseNumber: estate.malsnumer ?? undefined, + dateOfDeath: estate.danardagur ?? undefined, + will: estate.erfdaskra ?? undefined, knowledgeOfOtherWill: estate.erfdakraVitneskja, settlement: estate.kaupmali, - nameOfDeceased: estate.nafn, - nationalId: estate.kennitala, - addressOfDeceased: estate.logheimili, + nameOfDeceased: estate.nafn ?? undefined, + nationalId: estate.kennitala ?? undefined, + addressOfDeceased: estate.logheimili ?? undefined, heirs: mapInheritanceReportHeirs(estate.erfingar ?? []), ...mapInheritanceReportAssets(estate.eignir), } diff --git a/libs/clients/work-machines/src/clientConfig.json b/libs/clients/work-machines/src/clientConfig.json index 96ed8baa8343..ff3603c2a394 100644 --- a/libs/clients/work-machines/src/clientConfig.json +++ b/libs/clients/work-machines/src/clientConfig.json @@ -30,6 +30,15 @@ "schema": { "type": "string" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -77,6 +86,15 @@ "type": "string", "default": "" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -120,6 +138,17 @@ "post": { "tags": ["MachineOwnerChange"], "summary": "An enpoint to post an ownerChange application that hasn't been confirmed by the buyer.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "description": "", "content": { @@ -169,6 +198,17 @@ "put": { "tags": ["MachineOwnerChange"], "summary": "An enpoint that completes the ownerchange process when the buyer has confirmed ownership.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "description": "", "content": { @@ -219,6 +259,25 @@ "/api/MachineParentCategories": { "get": { "tags": ["MachineParentCategories"], + "parameters": [ + { + "name": "locale", + "in": "query", + "schema": { + "type": "string", + "default": "is" + } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -255,6 +314,15 @@ "schema": { "type": "string" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -263,7 +331,10 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MachineParentCategoryDetailsDto" + "type": "array", + "items": { + "$ref": "#/components/schemas/MachineParentCategoryDetailsDto" + } } } } @@ -285,6 +356,17 @@ "post": { "tags": ["MachineRequestInspection"], "summary": "Request an inspection for a machine.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "description": "", "content": { @@ -408,6 +490,15 @@ "type": "string", "default": "is" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -702,6 +793,15 @@ "type": "string", "default": "is" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -882,6 +982,15 @@ "type": "string", "default": "excel" } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -953,6 +1062,17 @@ "post": { "tags": ["MachineStatusChange"], "summary": "Changes the status of the machine.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "description": "", "content": { @@ -989,6 +1109,17 @@ "post": { "tags": ["MachineStreetRegistration"], "summary": "Register a machine for street use.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "content": { "application/json-patch+json": { @@ -1064,6 +1195,17 @@ "get": { "tags": ["MachineStreetRegistration"], "summary": "Returns a list of registration number prefixes that require an inspection before street registration", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1085,6 +1227,17 @@ "get": { "tags": ["MachineStreetRegistration"], "summary": "Returns a list of registration number prefixes that require an inspection before street registration", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1112,6 +1265,23 @@ "schema": { "type": "string" } + }, + { + "name": "locale", + "in": "query", + "schema": { + "type": "string", + "default": "is" + } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -1135,6 +1305,17 @@ "post": { "tags": ["MachineSupervisorChange"], "summary": "Update the supervisor assigned to a machine.", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "requestBody": { "description": "", "content": { @@ -1190,6 +1371,17 @@ "/api/MachineTypes": { "get": { "tags": ["MachineTypes"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1231,6 +1423,17 @@ "get": { "tags": ["Openapi"], "summary": "Returns the openapi document as a json file", + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK" @@ -1255,6 +1458,23 @@ "schema": { "type": "string" } + }, + { + "name": "locale", + "in": "query", + "schema": { + "type": "string", + "default": "is" + } + }, + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } } ], "responses": { @@ -1277,6 +1497,17 @@ "/api/TechnicalInfo/BearingCables": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1297,6 +1528,17 @@ "/api/TechnicalInfo/PullingCables": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1317,6 +1559,17 @@ "/api/TechnicalInfo/Chemicals": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1337,6 +1590,17 @@ "/api/TechnicalInfo/BaseTypes": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1357,6 +1621,17 @@ "/api/TechnicalInfo/HeatingEquipment": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1377,6 +1652,17 @@ "/api/TechnicalInfo/RunningSpeed": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1397,6 +1683,17 @@ "/api/TechnicalInfo/LiftingEquiptment": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1417,6 +1714,17 @@ "/api/TechnicalInfo/PowerSource": { "get": { "tags": ["TechnicalInfo"], + "parameters": [ + { + "name": "X-Correlation-ID", + "in": "header", + "description": "Unique identifier associated with the request", + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "OK", @@ -1814,10 +2122,18 @@ "type": "string", "nullable": true }, + "nameEn": { + "type": "string", + "nullable": true + }, "subCategoryName": { "type": "string", "nullable": true }, + "subCategoryNameEn": { + "type": "string", + "nullable": true + }, "registrationNumberPrefix": { "type": "string", "nullable": true @@ -1831,6 +2147,10 @@ "name": { "type": "string", "nullable": true + }, + "nameEn": { + "type": "string", + "nullable": true } }, "additionalProperties": false @@ -2019,6 +2339,10 @@ "type": "string", "nullable": true }, + "nameEn": { + "type": "string", + "nullable": true + }, "registrationNumberPrefix": { "type": "string", "nullable": true @@ -2026,6 +2350,10 @@ "parentCategoryName": { "type": "string", "nullable": true + }, + "parentCategoryNameEn": { + "type": "string", + "nullable": true } }, "additionalProperties": false @@ -2216,6 +2544,10 @@ "type": "string", "nullable": true }, + "labelEn": { + "type": "string", + "nullable": true + }, "type": { "type": "string", "nullable": true @@ -2231,13 +2563,27 @@ "values": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/TechInfoListItem" }, "nullable": true } }, "additionalProperties": false }, + "TechInfoListItem": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + }, + "nameEn": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, "TechInfoListItemDto": { "type": "object", "properties": { diff --git a/libs/clients/work-machines/src/lib/workMachines.service.ts b/libs/clients/work-machines/src/lib/workMachines.service.ts index 5ec34f55d3e7..4c6cee1f4f50 100644 --- a/libs/clients/work-machines/src/lib/workMachines.service.ts +++ b/libs/clients/work-machines/src/lib/workMachines.service.ts @@ -289,11 +289,11 @@ export class WorkMachinesClientService { async mustInspectBeforeRegistration(auth: Auth) { return await this.machineStreetApiWithAuth( auth, - ).apiMachineStreetRegistrationMustInspectBeforeRegistrationGet() + ).apiMachineStreetRegistrationMustInspectBeforeRegistrationGet({}) } async getMachineTypes(auth: Auth): Promise { - return await this.machineTypesApiWithAuth(auth).apiMachineTypesGet() + return await this.machineTypesApiWithAuth(auth).apiMachineTypesGet({}) } async getMachineModels( @@ -308,8 +308,7 @@ export class WorkMachinesClientService { async getMachineParentCategoriesTypeModel( auth: Auth, requestParameters: ApiMachineParentCategoriesTypeModelGetRequest, - ): Promise { - console.log(requestParameters.model, requestParameters.type) + ): Promise { return await this.machineParentCategoriesApiWithAuth( auth, ).apiMachineParentCategoriesTypeModelGet(requestParameters) @@ -320,7 +319,7 @@ export class WorkMachinesClientService { ): Promise { return await this.machineParentCategoriesApiWithAuth( auth, - ).apiMachineParentCategoriesGet() + ).apiMachineParentCategoriesGet({}) } async getMachineSubCategories( diff --git a/libs/portals/shared-modules/delegations/src/components/delegations/DelegationViewModal.tsx b/libs/portals/shared-modules/delegations/src/components/delegations/DelegationViewModal.tsx index 39af623bb467..b06a5e7c0d5f 100644 --- a/libs/portals/shared-modules/delegations/src/components/delegations/DelegationViewModal.tsx +++ b/libs/portals/shared-modules/delegations/src/components/delegations/DelegationViewModal.tsx @@ -138,6 +138,9 @@ export const DelegationViewModal = ({ )}