Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Studio doesn't detect changes for properties in request pattern for Service store mapping #1175

Closed
2 tasks done
MauricioUyaguari opened this issue May 23, 2022 · 0 comments · Fixed by #1174
Closed
2 tasks done

Comments

@MauricioUyaguari
Copy link
Member

MauricioUyaguari commented May 23, 2022

Similar issues

  • I have searched and found no existing similar issues

How are you using Studio?

Legend Studio

Current and expected behavior

No changes detected when changing service pattern requests in service store mappings

Steps to reproduce

Change serializationFormat to 'CSV' no change will be captured.

Model data

###ServiceStore
ServiceStore test::ServiceStore
(
  Service TestService
  (
    path : '/testService';
    method : GET;
    parameters :
    (
      serializationFormat : String ( location = query )
    );
    response : test::model::A <- test::Binding;
    security : [];
  )
)


###ExternalFormat
SchemaSet test::SchemaSet2
{
  format: FlatData;
  schemas: [
    {
      content: 'section A: DelimitedWithHeadings\n{\n  scope.untilEof;\n  delimiter: \',\';\n\n  Record\n  {\n    alpha   : STRING;\n    beta    : BOOLEAN(optional);\n    gamma   : INTEGER;\n  }\n}';
    }
  ];
}

SchemaSet test::SchemaSet
{
  format: FlatData;
  schemas: [
    {
      content: 'section A: DelimitedWithHeadings\n{\n  scope.untilEof;\n  delimiter: \',\';\n\n  Record\n  {\n    alpha   : STRING;\n    beta    : BOOLEAN(optional);\n    gamma   : INTEGER;\n    delta   : INTEGER;\n    epsilon : INTEGER;\n    zeta    : DECIMAL;\n    eta     : DECIMAL;\n    theta   : DATE;\n    iota    : DATETIME;\n  }\n}';
    }
  ];
}

Binding test::Binding2
{
  schemaSet: test::SchemaSet2;
  contentType: 'application/x.flatdata';
  modelIncludes: [
    test::model::B
  ];
}

Binding test::Binding
{
  schemaSet: test::SchemaSet;
  contentType: 'application/x.flatdata';
  modelIncludes: [
    test::model::A
  ];
}


###Pure
Class test::model::A
{
  alpha: String[1];
  beta: Boolean[0..1];
  gamma: Integer[1];
  delta: Float[1];
  epsilon: Decimal[1];
  zeta: Float[1];
  eta: Decimal[1];
  theta: StrictDate[1];
  iota: DateTime[1];
}

Class test::model::B
{
  alpha: String[1];
  beta: Boolean[0..1];
  gamma: Integer[1];
}


###Mapping
Mapping test::mapping
(
  *test::model::A: ServiceStore
  {
    ~service [test::ServiceStore] TestService
    (
      ~request
      (
        parameters
        (
          serializationFormat = 'JSON'
        )
      )
    )
  }
)

Environment

Chrome

Possible solution and workaround

No response

Contribution

  • I would like to work on the fix for this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants