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

CLOUDP-266431: Add the output transformation logic to foascli (skeleton) #144

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Aug 7, 2024

Proposed changes

Jira ticket: CLOUDP-266431

This PR proposes the following changes:

  • moves the changelog.go from openapi package to its own package
  • defines a outputfilter package which will contains all the transformations for the entries
  • adds the message transformations
./bin/foascli changelog create -b ~/Downloads/test/base -r ~/Downloads/test/revision -e ~/Downloads/test/exceptions.yaml                                         
Printing the checks
{
  "id": "api-schema-removed",
  "text": "removed the schema 'AzureHardwareSpec20250101'",
  "level": 3,
  "section": "components"
}
{
  "id": "endpoint-added",
  "text": "endpoint added",
  "level": 1,
  "operation": "GET",
  "operationId": "getVersion",
  "path": "/rest/unauth/version",
  "source": "/Users/andrea.angiolillo/Downloads/test/revision/v2.json",
  "section": "paths"
}
....

@andreaangiolillo andreaangiolillo marked this pull request as ready for review August 7, 2024 19:35
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner August 7, 2024 19:35
@andreaangiolillo andreaangiolillo merged commit f6848f3 into main Aug 8, 2024
8 checks passed
@andreaangiolillo andreaangiolillo deleted the CLOUDP-266431 branch August 8, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants