ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 65 forks source link

Implement cloud value specific validation #7119

Open xlight05 opened 1 year ago

xlight05 commented 1 year ago

Description: $Subject

As of now, we are supporting the Cloud.toml based on k8s schema. However, docker supports only a small subset of those. If the docker flag was selected, users should receive diagnostics if k8s-specific fields were selected.

This can be implemented using another schema for cloud=docker

Describe your problem(s)

Describe your solution(s)

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

Vishalk91-4 commented 1 year ago

@xlight05, could you please assign this issue to me Could you tell me which files do i need to look into, for making changes and explain broadly on what I need to add Thanks

Tushar98644 commented 1 year ago

@xlight05 I would like to work on this issue

xlight05 commented 1 year ago

Hii, thanks for your interest in this specific issue. We usually do the schema validation via a schema. You can find c2c-schema.json in the codebase. This is a custom written TOML validator which follows same json spec. However it only supports very little features of json schema spec so try to use the same syntax as the c2c-schema.json.

What you will have to do is to introduce a new file similar to c2c-schema and add the docker specific stuff there.

keizer619 commented 11 months ago

@Vishalk91-4 Are you still working on this?

devesh711 commented 2 weeks ago

hey @keizer619 ,Can I work on this ?

keizer619 commented 1 week ago

Hi @devesh711

I have assigned this issue to you.

To help you get started, here are some essential resources:

  1. Understanding Ballerina Platform: Learn what Ballerina is all about Ballerina Platform
  2. How to Contribute: Read our contributing guidelines to understand how you can contribute effectively: Contribution Guide
  3. Contributing to the Ballerina Library: If you're interested in contributing to our library, here are the guidelines: Library Contribution Guide
  4. Learn Ballerina: If you're new to Ballerina or want to enhance your skills, our official website offers a wealth of learning resources: Learn Ballerina
  5. Get Help and Connect: Ask technical questions on Stack Overflow with Ballerina tag and join our Discord community Ballerina Discord
devesh711 commented 1 week ago

thanks @keizer619 .

xlight05 commented 1 week ago

hey @keizer619 ,Can I work on this ?

You can refer to this comment for details. https://github.com/ballerina-platform/ballerina-library/issues/7119#issuecomment-2389556127

You can ask me if anything =)