Skip to content

Feature: Support OpenAPI reflection #79

Open
@dilyevsky

Description

@dilyevsky

I'm working on a prototype to have OpenaAPI types reflected in Starlark (e.g use case - #70). Rough API I'm shooting for:

monitoring = openapi("monitoring.coreos.com/v1")

def main(ctx):
    return monitoring.PrometheusRule(
        metadata = ...,
        spec = monitoring.PrometheusRuleSpec(
            ...
        ),
    )

...so it's very similar to proto types but separate registry and reflection is based on OpenAPI v2/3 schema definitions.

I could package this in a separate library but skycfg seems like a logical place for it considering above so opening this to gauge interest, etc

+cc @jmillikin-stripe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions