Skip to content

feat(crafting-schema): update default contract#2494

Merged
Piskoo merged 4 commits intochainloop-dev:mainfrom
Piskoo:update-default-config
Oct 30, 2025
Merged

feat(crafting-schema): update default contract#2494
Piskoo merged 4 commits intochainloop-dev:mainfrom
Piskoo:update-default-config

Conversation

@Piskoo
Copy link
Collaborator

@Piskoo Piskoo commented Oct 29, 2025

This PR updates default contract schema used during workflow creation when no schema is given and contract creation when no schema is given to schema v2.

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo marked this pull request as ready for review October 29, 2025 16:34
Copy link
Member

@migmartri migmartri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

var EmptyDefaultContract = &Contract{
Raw: []byte("schemaVersion: v1"), Format: unmarshal.RawFormatYAML,
// CreateDefaultContract creates a new default contract with the specified name
func CreateDefaultContract(name string) (*Contract, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably don't need to expose this function

Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
@Piskoo Piskoo merged commit e18aa28 into chainloop-dev:main Oct 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants