Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#903]: Make schema optional, allow alternate content type #905

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

ctron
Copy link
Contributor

@ctron ctron commented Dec 4, 2020

This change allows to make the schema optional and also allows to
configure the data content type.

Signed-off-by: Jens Reimann [email protected]

@ctron ctron mentioned this pull request Dec 4, 2020
5 tasks
@ctron ctron force-pushed the feature/optional_schema_1 branch from f149892 to a1e6e0b Compare December 4, 2020 09:39
@ctron
Copy link
Contributor Author

ctron commented Dec 4, 2020

Hm, looks like you have a CI check in place that doesn't allow to properly specify the copyright year range.

@thjaeckle
Copy link
Member

Hm, looks like you have a CI check in place that doesn't allow to properly specify the copyright year range.

Yes, copyright header for us is only the creation year as this is sufficient according to the Eclipse Foundation Handbook.

@ctron
Copy link
Contributor Author

ctron commented Dec 4, 2020

Hm, looks like you have a CI check in place that doesn't allow to properly specify the copyright year range.

Yes, copyright header for us is only the creation year as this is sufficient according to the Eclipse Foundation Handbook.

Works for me 👍

Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

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

Thx @ctron, already looks very promising :)
Added a few requests..

One more thing:
Could you please enhance the services/gateway/starter/src/main/resources/gateway.conf with the cloud-events section (e.g. below public-health { ... }) and the same defaults as in the code, so:

cloud-events {
  empty-schema-allowed = true
  data-types = [
    "application/json"
    "application/vnd.eclipse.ditto+json"
  ]
}

That way Ditto's configuration files act as documentation of what can be configured overall.

@thjaeckle thjaeckle added this to the 1.5.0 milestone Dec 4, 2020
@ctron ctron force-pushed the feature/optional_schema_1 branch from a1e6e0b to 34c3d67 Compare December 8, 2020 13:03
@ctron
Copy link
Contributor Author

ctron commented Dec 8, 2020

I just updated the PR.

Copy link
Member

@thjaeckle thjaeckle left a comment

Choose a reason for hiding this comment

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

The CloudEventsTests would need meaningful tests, but I'm not sure if you want to address all mentioned follow-up tasks of #903 ;)
I would rather delete the current CloudEventsTests class and the one not so useful test to be honest.

@ctron ctron force-pushed the feature/optional_schema_1 branch from 34c3d67 to 1b05c63 Compare December 9, 2020 09:29
@ctron
Copy link
Contributor Author

ctron commented Dec 9, 2020

The CloudEventsTests would need meaningful tests, but I'm not sure if you want to address all mentioned follow-up tasks of #903 ;)
I would rather delete the current CloudEventsTests class and the one not so useful test to be honest.

I wanted to keep the scope of this PR as is, if possible. And work on the other items in a new PR. Just to keep PRs small.

I tried to explain the idea behind the current state of the unit test above. But as mentioned, I am open to dropping it altogether for this PR.

@ctron ctron force-pushed the feature/optional_schema_1 branch from 1b05c63 to fe7d03d Compare December 9, 2020 09:31
This change allows to make the schema optional and also allows to
configure the data content type.

Signed-off-by: Jens Reimann <[email protected]>
@ctron ctron force-pushed the feature/optional_schema_1 branch from fe7d03d to ffcfaf2 Compare December 9, 2020 10:08
@thjaeckle thjaeckle merged commit 2a429c5 into eclipse-ditto:master Dec 9, 2020
@thjaeckle
Copy link
Member

Thx for the contribution, really appreciated 👍

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