Skip to content

[Logic] Model validation fails with errors #778

@veronicagg

Description

@veronicagg

Model validation reports erros when validating responses against .net tests recordings for logic 2015-08-01 spec:
> Operation: IntegrationAccountAgreements_List
> x-ms-examples
> Scenario: ListIntegrationAccountAgreementsGET115
> InnerErrors:
3. code: ENUM_MISMATCH
message: No enum match for: EDIFACT
path: value,1,properties,agreementType

> Operation: IntegrationAccountSchemas_CreateOrUpdate
	> x-ms-examples
		> Scenario: CreateAndDeleteIntegrationAccountSchemaPUT62
			> InnerErrors:
			  1. code: INVALID_TYPE
			     message: Expected type object but found type string
			     path: properties,metadata
			     description: The metadata.
			  2. code: INVALID_TYPE
			     message: Expected type object but found type string
			     path: properties,content
			     description: The content.

From swagger:

    "AgreementType": {
      "type": "string",
      "enum": [
        "NotSpecified",
        "AS2",
        "X12",
        "Edifact"
      ],
      "x-ms-enum": {
        "name": "AgreementType",
        "modelAsString": false
      }
    },
  "IntegrationAccountSchemaProperties": {
      "type": "object",
      "properties": {
        "schemaType": {
          "$ref": "#/definitions/SchemaType",
          "description": "The schema type."
        },
        "targetNamespace": {
          "type": "string",
          "description": "The target namespace."
        },
        "createdTime": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "description": "The created time."
        },
        "changedTime": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "description": "The changed time."
        },
        "content": {
          "type": "object",
          "description": "The content.",
          "properties": {}
        },
        "contentType": {
          "type": "string",
          "description": "The content type."
        },
        "contentLink": {
          "$ref": "#/definitions/IntegrationAccountContentLink",
          "readOnly": true,
          "description": "The content link."
        },
        "metadata": {
          "type": "object",
          "description": "The metadata.",
          "properties": {}
        }
      }
    },

Other models in the spec containing 'metadata' and 'content' show similar issue.

> Operation: Workflows_Validate
	> x-ms-examples
		> Scenario: ValidateWorkflowPOST203
			> InnerErrors:
			  1. code: INVALID_TYPE
			     message: Expected type object but found type string
			     path: properties,definition

Also for logic 2016 spec:

        "definition": {
          "$ref": "#/definitions/Object",
          "description": "The definition."
        },

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions