APIs.json API Properties Mock Server Info (Edit)

This property ensures that an API has a reference to a mock servers for individual APIs or as part of common properties, providing mocked deployments of an API that can be used for making test API calls.

APIs.jsonAPIsPropertiesSandboxMock Servers

Rule Definition

apis-json-apis-properties-mock-server-info.yaml
{"apis-json-apis-properties-mock-server-info":{"description":"This property ensures that an API has a reference to a mock servers for individual APIs or as part of common properties, providing mocked deployments of an API that can be used for making test API calls.","message":"Has a Mock Server","severity":"info","given":["$.apis.*.properties.*","$.common.*"],"then":[{"field":"type","function":"pattern","functionOptions":{"notMatch":"\\b(mocks|Mocks|MockServers)\\b"}}]}}

Back to All of the Rules