├── .github ├── dependabot.yml ├── semantic.yaml └── workflows │ ├── base-branch.yaml │ ├── create-release.yaml │ └── pull-requests.yaml ├── .gitignore ├── .golangci.yml ├── .releaserc.json ├── LICENSE ├── Makefile ├── README.md ├── data ├── embed.go ├── loader-malformed │ ├── malformed-api.yml │ └── schemas │ │ ├── bad-array.yml │ │ └── bad-string.yml ├── loader-multiple-files │ ├── api.yaml │ ├── api.yml │ ├── paths │ │ ├── pet-by-id.yml │ │ └── pets.yaml │ ├── responses │ │ └── Error.yaml │ └── schemas │ │ ├── Error.yaml │ │ ├── Pet.yml │ │ └── Pets.yaml ├── loader │ ├── pet-store.json │ └── pet-store.yml └── xTagGroups │ └── withXTagGroups.yaml ├── docs ├── main.go └── template │ └── index.html ├── examples ├── README.md ├── authentication.go ├── basic.go ├── customization.go ├── http_server_integration.go ├── javascript_api_mode.go ├── multi_file_spec.go ├── spec_modification.go └── url_based_loading.go ├── go.mod ├── go.sum ├── loader ├── json.go ├── loader.go ├── loader_test.go └── yaml.go ├── model ├── component.go ├── info.go ├── server.go ├── spec.go ├── spec_test.go ├── tag-group.go └── tag.go ├── option_authentication.go ├── option_authentication_test.go ├── option_clients.go ├── option_config_types.go ├── option_display.go ├── option_layout.go ├── option_metadata.go ├── option_servers.go ├── option_theme.go ├── options.go ├── options_test.go ├── sanitizer ├── css.go ├── css_test.go ├── sanitizer.go └── sanitizer_test.go ├── scalargo.go ├── scalargo_jsapi_test.go └── scalargo_test.go /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/semantic.yaml: -------------------------------------------------------------------------------- 1 | titleAndCommits: true -------------------------------------------------------------------------------- /.github/workflows/base-branch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.github/workflows/base-branch.yaml -------------------------------------------------------------------------------- /.github/workflows/create-release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.github/workflows/create-release.yaml -------------------------------------------------------------------------------- /.github/workflows/pull-requests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.github/workflows/pull-requests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/.releaserc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/README.md -------------------------------------------------------------------------------- /data/embed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/embed.go -------------------------------------------------------------------------------- /data/loader-malformed/malformed-api.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-malformed/malformed-api.yml -------------------------------------------------------------------------------- /data/loader-malformed/schemas/bad-array.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-malformed/schemas/bad-array.yml -------------------------------------------------------------------------------- /data/loader-malformed/schemas/bad-string.yml: -------------------------------------------------------------------------------- 1 | schemas: "not an object, surprise!" 2 | -------------------------------------------------------------------------------- /data/loader-multiple-files/api.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/api.yaml -------------------------------------------------------------------------------- /data/loader-multiple-files/api.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/api.yml -------------------------------------------------------------------------------- /data/loader-multiple-files/paths/pet-by-id.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/paths/pet-by-id.yml -------------------------------------------------------------------------------- /data/loader-multiple-files/paths/pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/paths/pets.yaml -------------------------------------------------------------------------------- /data/loader-multiple-files/responses/Error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/responses/Error.yaml -------------------------------------------------------------------------------- /data/loader-multiple-files/schemas/Error.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/schemas/Error.yaml -------------------------------------------------------------------------------- /data/loader-multiple-files/schemas/Pet.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/schemas/Pet.yml -------------------------------------------------------------------------------- /data/loader-multiple-files/schemas/Pets.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader-multiple-files/schemas/Pets.yaml -------------------------------------------------------------------------------- /data/loader/pet-store.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader/pet-store.json -------------------------------------------------------------------------------- /data/loader/pet-store.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/loader/pet-store.yml -------------------------------------------------------------------------------- /data/xTagGroups/withXTagGroups.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/data/xTagGroups/withXTagGroups.yaml -------------------------------------------------------------------------------- /docs/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/docs/main.go -------------------------------------------------------------------------------- /docs/template/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/docs/template/index.html -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/authentication.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/authentication.go -------------------------------------------------------------------------------- /examples/basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/basic.go -------------------------------------------------------------------------------- /examples/customization.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/customization.go -------------------------------------------------------------------------------- /examples/http_server_integration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/http_server_integration.go -------------------------------------------------------------------------------- /examples/javascript_api_mode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/javascript_api_mode.go -------------------------------------------------------------------------------- /examples/multi_file_spec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/multi_file_spec.go -------------------------------------------------------------------------------- /examples/spec_modification.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/spec_modification.go -------------------------------------------------------------------------------- /examples/url_based_loading.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/examples/url_based_loading.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/go.sum -------------------------------------------------------------------------------- /loader/json.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/loader/json.go -------------------------------------------------------------------------------- /loader/loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/loader/loader.go -------------------------------------------------------------------------------- /loader/loader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/loader/loader_test.go -------------------------------------------------------------------------------- /loader/yaml.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/loader/yaml.go -------------------------------------------------------------------------------- /model/component.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/component.go -------------------------------------------------------------------------------- /model/info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/info.go -------------------------------------------------------------------------------- /model/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/server.go -------------------------------------------------------------------------------- /model/spec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/spec.go -------------------------------------------------------------------------------- /model/spec_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/spec_test.go -------------------------------------------------------------------------------- /model/tag-group.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/tag-group.go -------------------------------------------------------------------------------- /model/tag.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/model/tag.go -------------------------------------------------------------------------------- /option_authentication.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_authentication.go -------------------------------------------------------------------------------- /option_authentication_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_authentication_test.go -------------------------------------------------------------------------------- /option_clients.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_clients.go -------------------------------------------------------------------------------- /option_config_types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_config_types.go -------------------------------------------------------------------------------- /option_display.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_display.go -------------------------------------------------------------------------------- /option_layout.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_layout.go -------------------------------------------------------------------------------- /option_metadata.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_metadata.go -------------------------------------------------------------------------------- /option_servers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_servers.go -------------------------------------------------------------------------------- /option_theme.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/option_theme.go -------------------------------------------------------------------------------- /options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/options.go -------------------------------------------------------------------------------- /options_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/options_test.go -------------------------------------------------------------------------------- /sanitizer/css.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/sanitizer/css.go -------------------------------------------------------------------------------- /sanitizer/css_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/sanitizer/css_test.go -------------------------------------------------------------------------------- /sanitizer/sanitizer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/sanitizer/sanitizer.go -------------------------------------------------------------------------------- /sanitizer/sanitizer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/sanitizer/sanitizer_test.go -------------------------------------------------------------------------------- /scalargo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/scalargo.go -------------------------------------------------------------------------------- /scalargo_jsapi_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/scalargo_jsapi_test.go -------------------------------------------------------------------------------- /scalargo_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bdpiprava/scalar-go/HEAD/scalargo_test.go --------------------------------------------------------------------------------