Files
fgueryandGitHub 322f0cbabc feat(EN-420): change pagination, have it hard coded per connector instead of user configured (#602)
* feat(EN-420): added page size as a const for each plugin

* feat(EN-420): remove pageSize from connector config

* feat(EN-420): review all limits according to api docs

* ensure pageSize is marked as deprecated

* sdk generation

* fix: tests

* fix: ignore linting error on depreated call

* feat: change deprecation message

* regenerate openapi & sdk

* change message to avoid duplicating the deprecation word

* regenerate openapi & sdk

* feat: change deprecation message

* regenerate openapi & sdk
2025-11-26 11:12:30 +00:00

50 lines
1.3 KiB
Go

package main
type V3ConnectorConfigYaml struct {
Components Components `yaml:"components"`
}
type Components struct {
Schemas Schemas `yaml:"schemas"`
}
type Schemas struct {
V3ConnectorConfig V3ConnectorConfig `yaml:"V3ConnectorConfig"`
V3Configs map[string]V3Config `yaml:",inline"`
}
type Discriminator struct {
PropertyName string `yaml:"propertyName"`
Mapping map[string]string `yaml:"mapping"`
}
type V3ConnectorConfig struct {
Discriminator Discriminator `yaml:"discriminator"`
OneOf []OneOf `yaml:"oneOf"`
}
type OneOf struct {
Ref map[string]string `yaml:",inline"`
}
type V3Config struct {
Type string `yaml:"type"`
Required []string `yaml:"required"`
Properties map[string]Property `yaml:"properties"`
}
type Property struct {
Type string `yaml:"type"`
Default any `yaml:"default,omitempty"`
Deprecated bool `yaml:"deprecated,omitempty"`
XSpeakeasyDeprecationMessage string `yaml:"x-speakeasy-deprecation-message,omitempty"`
}
type ConfigJson map[string]ConfigProperties
type ConfigProperties struct {
DataType string `json:"dataType"`
Required bool `json:"required"`
DefaultValue string `json:"defaultValue"`
}