-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix design file YAML indentation #13558
Fix design file YAML indentation #13558
Conversation
Signed-off-by: Souvik Kar Mahapatra <souvikat001@gmail.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Signed-off-by: Souvik Kar Mahapatra <souvikat001@gmail.com>
@leecalcote implemented changes in MeshKit to enforce YAML indentation and preserve field ordering. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include upgrade to latest MeshKit
…aml-indentation-design-file
Signed-off-by: Souvik Kar Mahapatra <souvikat001@gmail.com>
END-TO-END TESTS
📦 Test Result Summary
⌛ Duration: 7 minutes and 53 seconds Overall Result: 👎 Some tests failed. [Show/Hide] Test Result Details
|
Notes for Reviewers
This specific part of the code is not using the Yaml converter from encoder in meshkit. Tried incorporating the meshkit encoder however the
ToYaml
first unmarshalls tomap[string]interface{}
and since maps in Go are by definition unordered we are loosing out on the fields arrangement.Ideally we would want to work ensuring that the order of JSON and YAML is maintained right in the encoder and I'm working on it.
Edit:
New changes are incorporated. The MeshKit PR (meshery/meshkit#675) must be merged first, then this one.
Signed commits