Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion circular_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,12 @@ func TestCircular_RemoteExpandAzure(t *testing.T) {
require.NotNil(t, pth1)

// check expected remaining $ref
assertRefInJSONRegexp(t, jazon, `^(#/definitions/)|(networkInterface.json#/definitions/)|(networkSecurityGroup.json#/definitions/)|(network.json#/definitions)|(virtualNetworkTap.json#/definitions/)|(virtualNetwork.json#/definitions/)|(privateEndpoint.json#/definitions/)|(\./examples/)`)
assertRefInJSONRegexp(t, jazon,
`^(#/definitions/)|(networkInterface.json#/definitions/)|`+
`(networkSecurityGroup.json#/definitions/)|(network.json#/definitions)|`+
`(virtualNetworkTap.json#/definitions/)|(virtualNetwork.json#/definitions/)|`+
`(privateEndpoint.json#/definitions/)|(\./examples/)`,
)

// check all $ref resolve in the expanded root
// (filter out the remaining $ref in x-ms-example extensions, which are not expanded)
Expand Down
Loading