Skip to content

Commit

Permalink
fixed tests, updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfiel committed Jan 15, 2025
1 parent 5428993 commit fc06632
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/split/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Oas2Definition } from '@redocly/openapi-core';
import type { Oas3_1Definition, Oas3Definition } from 'core/src/typings/openapi';
import type { Oas3_1Definition, Oas3Definition } from '@redocly/openapi-core/lib/typings/openapi';

export type Definition = Oas3_1Definition | Oas3Definition | Oas2Definition;
export interface ComponentsFiles {
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/__tests__/lint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ describe('lint', () => {
outdent`
openapi: 3.0.4
info:
title: test json schema validation keyword - allOf should use an OAS Schema, not JSON Schema
title: test json schema validation keyword $schema - should use an OAS Schema, not JSON Schema
version: 1.0.0
paths:
'/thing':
Expand All @@ -1694,7 +1694,7 @@ describe('lint', () => {
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
properties: {}
properties: {}
`,
''
);
Expand Down Expand Up @@ -1723,7 +1723,7 @@ describe('lint', () => {
},
],
"message": "Property \`$schema\` is not expected here.",
"ruleId": "spec",
"ruleId": "struct",
"severity": "error",
"suggest": [],
},
Expand All @@ -1736,7 +1736,7 @@ describe('lint', () => {
outdent`
openapi: 3.1.1
info:
title: test json schema validation keyword - allOf should use an OAS Schema, not JSON Schema
title: test json schema validation keyword $schema - should allow a JSON Schema
version: 1.0.0
paths:
'/thing':
Expand All @@ -1750,7 +1750,7 @@ describe('lint', () => {
schema:
$schema: http://json-schema.org/draft-04/schema#
type: object
properties: {}
properties: {}
`,
''
);
Expand Down

0 comments on commit fc06632

Please sign in to comment.