Giter Site home page Giter Site logo

Flexible comment style about cel-spec HOT 3 OPEN

google avatar google commented on July 29, 2024
Flexible comment style

from cel-spec.

Comments (3)

TristonianJones avatar TristonianJones commented on July 29, 2024

Hi @yegle,

I've tried embedding CEL in YAML before and my experience was that I could write a YAML comment and it would be stripped from the CEL string by the YAML parser. Could you give me an example of how you're using it so maybe I can better understand where the problematic usage comes up for you. Perhaps I was just writing a lot of header-style comments on the YAML field and just didn't think too much about trying to write inline comments with the expression.

Thanks,

-Tristan

from cel-spec.

yegle avatar yegle commented on July 29, 2024

https://github.com/google/exposure-notifications-verification-server/blob/main/terraform/dos.tf is an example. The Terraform HCL supports both # and // styles of line comment, but the comment of the embedded Cloud Armor config (in CEL) has to be written using //.

from cel-spec.

TristonianJones avatar TristonianJones commented on July 29, 2024

Thanks for the example, I'll give it a look.

from cel-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.