openapi

package
v0.0.0-...-ac1778d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: GPL-3.0 Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterReadOnlyProperties

func FilterReadOnlyProperties(ctx context.Context, doc openapi3.Schema, inputs resource.PropertyMap, discriminatedValue *string)

FilterReadOnlyProperties recursively removes properties from the inputs map that are marked as read-only in the OpenAPI doc.

func GetOpenAPISpec

func GetOpenAPISpec(data []byte) *openapi3.T

GetOpenAPISpec returns a parsed and validated openapi doc.

Types

type Handler

type Handler interface {
	// GetOpenAPIDoc returns the parsed OpenAPI3 doc.
	GetOpenAPIDoc() openapi3.T
	// GetSchemaSpec returns the unmarshaled Pulumi schema spec.
	GetSchemaSpec() pschema.PackageSpec
	// GetBaseURL returns the base URL for the provider's API.
	GetBaseURL() string
	// GetHTTPClient returns an authenticated HTTP client used to execute
	// the provider's API operations.
	GetHTTPClient() *http.Client
}

Handler is an interface implemented by OpenAPI-based resource providers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL