-
Notifications
You must be signed in to change notification settings - Fork 46
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
✨ Adding ability to output spec data #516
✨ Adding ability to output spec data #516
Conversation
@@ -242,3 +265,121 @@ func validateFlags() error { | |||
|
|||
return nil | |||
} | |||
|
|||
func createOpenAPISchema(providers map[string]provider.InternalProviderClient, log logr.Logger) openapi3.Spec { |
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.
this is awesome
ef228b9
to
cf80511
Compare
Signed-off-by: Shawn Hurley <shawn@hurley.page>
Signed-off-by: Shawn Hurley <shawn@hurley.page>
Signed-off-by: Shawn Hurley <shawn@hurley.page>
Signed-off-by: Shawn Hurley <shawn@hurley.page>
Signed-off-by: Shawn Hurley <shawn@hurley.page>
cf80511
to
e43e012
Compare
Signed-off-by: Shawn Hurley <shawn@hurley.page>
6dcfc9e
to
ea7ad8c
Compare
Given the nature of the swagger UI, we would need to define a rest API like a contract. For our purpose, this is probably not what we want right now, skipping the display. |
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.
Things that I need to fix
...rnal-providers/generic-external-provider/pkg/server_configurations/generic/service_client.go
Outdated
Show resolved
Hide resolved
...providers/generic-external-provider/pkg/server_configurations/generic/service_client_test.go
Outdated
Show resolved
Hide resolved
...l-providers/generic-external-provider/pkg/server_configurations/pylsp/service_client_test.go
Outdated
Show resolved
Hide resolved
@@ -134,9 +134,7 @@ func (p *javaServiceClient) GetDependenciesFallback(ctx context.Context, locatio | |||
p.log.V(10).Info("Analyzing POM", | |||
"POM", fmt.Sprintf("%s:%s:%s", pomCoordinate(pom.GroupID), pomCoordinate(pom.ArtifactID), pomCoordinate(pom.Version)), | |||
"error", err) | |||
if err != nil { |
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.
Note to reviewer: this is because this err is checked above this is a redundant call
@@ -672,7 +686,7 @@ func getVersion(depVersion string) (*version.Version, error) { | |||
return v, nil | |||
} | |||
// Parsing failed so we'll try to extract a version and parse that | |||
re := regexp.MustCompile("v?([0-9]+(?:\\.[0-9]+)*)") | |||
re := regexp.MustCompile(`v?([0-9]+(?:.[0-9]+)*)`) |
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.
note to reviewer, this is something that vs code told me was a warning
Signed-off-by: Shawn Hurley <shawn@hurley.page>
e2c255b
to
802ce3f
Compare
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.
This is great, thank you
Adding the ability for the spec of the given components to be rendered in swagger open API.
TODO: