Skip to content

Commit

Permalink
Update additionalProperties setting in schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mearman committed Apr 27, 2024
1 parent 25148fb commit 9d4083f
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 27 deletions.
3 changes: 0 additions & 3 deletions generated/openapi.3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,6 @@
"type": "array"
},
"author": {
"additionalProperties": false,
"properties": {
"affiliations": {
"$ref": "#/components/schemas/affiliations"
Expand Down Expand Up @@ -2967,7 +2966,6 @@
"type": "array"
},
"institutionSchema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"$ref": "#/components/schemas/associatedInstitutionArray"
Expand Down Expand Up @@ -3258,7 +3256,6 @@
"nullable": true
},
"sourceSchema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": "string",
Expand Down
9 changes: 0 additions & 9 deletions generated/openapi.dereferenced.3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@
},
"results": {
"items": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -663,7 +662,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -1022,7 +1020,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -9558,7 +9555,6 @@
"results": {
"additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -10784,7 +10780,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -12011,7 +12006,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -14400,7 +14394,6 @@
},
"results": {
"items": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": "string",
Expand Down Expand Up @@ -14740,7 +14733,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": "string",
Expand Down Expand Up @@ -15085,7 +15077,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": "string",
Expand Down
9 changes: 0 additions & 9 deletions generated/openapi.dereferenced.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@
},
"results": {
"items": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -672,7 +671,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -1037,7 +1035,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"affiliations": {
"items": {
Expand Down Expand Up @@ -9673,7 +9670,6 @@
"results": {
"additionalProperties": false,
"items": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -10915,7 +10911,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -12158,7 +12153,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"items": {
Expand Down Expand Up @@ -14597,7 +14591,6 @@
},
"results": {
"items": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": [
Expand Down Expand Up @@ -14963,7 +14956,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": [
Expand Down Expand Up @@ -15334,7 +15326,6 @@
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": [
Expand Down
3 changes: 0 additions & 3 deletions generated/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,6 @@
"type": "array"
},
"author": {
"additionalProperties": false,
"properties": {
"affiliations": {
"$ref": "#/components/schemas/affiliations"
Expand Down Expand Up @@ -1942,7 +1941,6 @@
"type": "array"
},
"institutionSchema": {
"additionalProperties": false,
"properties": {
"associated_institutions": {
"$ref": "#/components/schemas/associatedInstitutionArray"
Expand Down Expand Up @@ -3294,7 +3292,6 @@
"type": "object"
},
"sourceSchema": {
"additionalProperties": false,
"properties": {
"abbreviated_title": {
"type": [
Expand Down
2 changes: 1 addition & 1 deletion src/spec/components/schemas/authors/author.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { countsByYear } from "~/spec/components/schemas/shared/countsByYear";
import { summary_stats } from "~/spec/components/schemas/shared/summary_stats";

export const author = {
additionalProperties: false,
// additionalProperties: false,
properties: {
affiliations: refSchema({ affiliations }),
cited_by_count: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { roles } from "~/spec/components/schemas/shared/roles";
import { summary_stats } from "~/spec/components/schemas/shared/summary_stats";

export const institutionSchema: SchemaObject = {
additionalProperties: false,
// additionalProperties: false,
properties: {
associated_institutions: refSchema({ associatedInstitutionArray }),
cited_by_count: {
Expand Down
2 changes: 1 addition & 1 deletion src/spec/components/schemas/sources/sourceSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { summary_stats } from "~/spec/components/schemas/shared/summary_stats";
import { apc_prices } from "~/spec/components/schemas/sources/apc_prices";

export const sourceSchema: SchemaObject = {
additionalProperties: false,
// additionalProperties: false,
properties: {
abbreviated_title: {
type: ["string", "null"]
Expand Down

0 comments on commit 9d4083f

Please sign in to comment.