Skip to content

Commit

Permalink
Merge pull request #14 from jellejurre/fix/allow-additional-properties
Browse files Browse the repository at this point in the history
Allow additional properties (and remove removed endpoint)
  • Loading branch information
ariesclark authored Sep 28, 2024
2 parents 1393f1f + 5b9dcdb commit 7b8aec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 4 additions & 1 deletion tests/_utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ function normalizeSchema(schema: OpenAPIV3.SchemaObject): Schema {
})
);
}
newSchema.additionalProperties = false;
newSchema.additionalProperties =
schema.additionalProperties == undefined
? false
: schema.additionalProperties;
} else if (schemaType === "array") {
if (schema.items && "type" in schema.items) {
newSchema.items = normalizeSchema(schema.items);
Expand Down
8 changes: 0 additions & 8 deletions tests/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,4 @@ test(testOperation, "getShortName", {
unstable: ["secureName", "shortName"]
});

test(testOperation, "sendSelfInvite", {
parameters: {
instanceId: blackCatFirstInstanceId,
worldId: blackCatWorld.id
},
statusCode: 200
});

test.todo("Get Instance By Short Name");

0 comments on commit 7b8aec3

Please sign in to comment.