-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: adds initial implementation for attribute schema building and validation Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * feat: adds schema validation to collection building in the cli package Adds AttributeSchema to the AttributeStore interface for fetching attribute schema descriptor information. Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * chore: removes extra options from build schema subcommand Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * fix: fixes json schema creation in FromTypes method for valid results * chore: adds consistent import sorting and unit tests in oras client package * chore: removed DefaultContentDeclararions and CommonAttributeMapping from schema Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * fix: fixes unhandled error Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: updates README.md with schema and linked collection building instructions Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds build command unit tests with dataset configuration inputs Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: adds fixes to CLI command examples Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * chore: adds grammar fixes to various comments Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * fix: remove unused imports from annotations.go and empty file from docs Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds SchemaLoading unit test Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: fixes formatting of SchemaConfiguration in README.md Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
- Loading branch information
Showing
46 changed files
with
1,917 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
"github.com/uor-framework/uor-client-go/schema" | ||
) | ||
|
||
// SchemaConfigurationKind object kind of SchemaConfiguration | ||
const SchemaConfigurationKind = "SchemaConfiguration" | ||
|
||
// SchemaConfiguration configures a schema. | ||
type SchemaConfiguration struct { | ||
TypeMeta `json:",inline"` | ||
Schema SchemaConfigurationSpec `json:"schema"` | ||
} | ||
|
||
// SchemaConfigurationSpec defines the configuration spec to build a UOR schema. | ||
type SchemaConfigurationSpec struct { | ||
// Address is the remote location for the default schema of the | ||
// collection. | ||
Address string `json:"address"` | ||
// AttributeTypes is a collection of attribute type definitions. | ||
AttributeTypes schema.Types `json:"attributeTypes,omitempty"` | ||
} |
Oops, something went wrong.