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

Improves Java SDK generation #52

Merged
merged 14 commits into from
Jul 28, 2022
Merged

Improves Java SDK generation #52

merged 14 commits into from
Jul 28, 2022

Conversation

sonnysideup
Copy link
Contributor

@sonnysideup sonnysideup commented Jul 19, 2022

  • Fixed time serialization bug that caused the list/get operations to fail
  • Fixed token-based authentication by adding bearer token auth strategy to client
  • Pushes artifacts to artifactory for consumption by application engineers

removing the security fields generates a client that is incapable of
using bearer tokens. derp
i believe the older version of kind has issues with k8s v1.24
and pushes JARs for branches
so we can evaluate the branch name within the generate script
@sonnysideup sonnysideup marked this pull request as ready for review July 26, 2022 16:26
@sonnysideup sonnysideup requested a review from steved July 26, 2022 21:40
.github/workflows/main.yml Outdated Show resolved Hide resolved
build/README.md Outdated Show resolved Hide resolved
Comment on lines +176 to +202
// name = strings.ReplaceAll(name, "github.com/dominodatalab/hephaestus/pkg/api/hephaestus/v1", "")
// name = strings.ReplaceAll(name, "k8s.io/apimachinery/pkg/apis/meta/", "")
//
// return name
}

// func walkOperation(op *spec3.Operation) {
// if reqBody := op.RequestBody; reqBody != nil {
// for _, mediaType := range reqBody.Content {
// if schema := mediaType.Schema; schema != nil {
// ref := schema.Ref
//
// switch {
// case strings.
// }
// }
// }
// }
//
// for _, response := range op.Responses.StatusCodeResponses {
// for _, mediaType := range response.Content {
// if schema := mediaType.Schema; schema != nil {
// schema.Ref = refFunc(schema.Ref.String())
// }
// }
// }
// }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to be used for something in a follow-up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the /openapi/v3 endpoint is much more user-friendly than the v2 one because it returns targeted resources (i.e. /openapi/v3/apis/hephaestus.dominodatalab.com/v1) instead of EVERYTHING. It's useful but not critical for this work so I'm going to do that work slowly and deliberately as a separate PR when I have time. These are just my notes for that future work.

@sonnysideup sonnysideup merged commit 0333482 into main Jul 28, 2022
@sonnysideup sonnysideup deleted the java-sdk-spruce branch July 28, 2022 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants