mirror of
https://github.com/moby/moby.git
synced 2026-08-08 17:11:38 +00:00
full diff: https://github.com/moby/buildkit/compare/d1e5d1a8f771...v0.27.0-rc1 Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
21 lines
458 B
Go
21 lines
458 B
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package spec
|
|
|
|
import (
|
|
"embed"
|
|
"path"
|
|
)
|
|
|
|
//go:embed schemas/*.json schemas/*/*.json
|
|
var assets embed.FS
|
|
|
|
func jsonschemaDraft04JSONBytes() ([]byte, error) {
|
|
return assets.ReadFile(path.Join("schemas", "jsonschema-draft-04.json"))
|
|
}
|
|
|
|
func v2SchemaJSONBytes() ([]byte, error) {
|
|
return assets.ReadFile(path.Join("schemas", "v2", "schema.json"))
|
|
}
|