Skip to content

CloudEvent validation fails due to strict encoding #8

@jskeet

Description

@jskeet

With a few workarounds, I've managed to get the .NET CloudEvent function to nearly meet validation - but the validation framework expects the mediaLink to be exactly:

"https://www.googleapis.com/download/storage/v1/b/some-bucket/o/Test.cs?generation=1587627537231057\u0026alt=media"

... whereas my output is:

"https://www.googleapis.com/download/storage/v1/b/some-bucket/o/Test.cs?generation=1587627537231057&alt=media"

Given that they're equivalent JSON, I believe it would be okay for the test to pass here. Perhaps validation tests that expect JSON should "parse and reformat" both input and output before comparing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions