Skip to content

Commit 645f173

Browse files
committed
Fix cyclic references
1 parent 8c52710 commit 645f173

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
import { SchemaPostProcessor } from '../models';
4+
import { replaceCyclicRef } from './helpers';
5+
6+
export const postProcessor: SchemaPostProcessor = async (namespace, apiVersion, schema) => {
7+
replaceCyclicRef(schema.definitions?.Step?.properties?.steps?.oneOf[0]?.items);
8+
}

schemas/2022-12-01/Microsoft.AzureStackHCI.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@
962962
{
963963
"type": "array",
964964
"items": {
965-
"$ref": "#/definitions/Step"
965+
"type": "object"
966966
}
967967
},
968968
{

0 commit comments

Comments
 (0)