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

Nilablity Update w/ Rules #10

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Nilablity Update w/ Rules #10

merged 3 commits into from
Aug 17, 2023

Conversation

SyntaxNode
Copy link
Contributor

Addresses #9 and other potential similar situations.

@@ -51,19 +51,19 @@ The `main` branch always contains latest code, so better use some package manage
- all enums, described in section 5, must be typed with section name singularized (e.g., "5.2 Banner Ad Types" -> `type BannerAdType int8`)
- all typed enums must have constants for each element, prefixed with type name (e.g., "5.2 Banner Ad Types - XHTML Text Ad (usually mobile)" -> `const BannerAdTypeXHTMLTextAd BannerAdType = 1`)
- never use `iota` for enum constants
- OpenRTB (2.x) section "5.1 Content Categories" should remain untyped and have no constants
- OpenRTB (2.x) "content categories" should remain untyped and have no constants
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This section no longer exists but there are still several references to content categories.

no | no | _required_ in spec | `Audio.MIMEs`
yes | yes | _required_ in spec, but is a part of mutually-exclusive group | `Imp.{Banner,Video,Audio,Native}`
no | yes | zero value (`""`, `0`) has no meaning, is defined in the spec as the default value, or represents time / duration | `Device.UA`
yes | yes | zero value (`""`, `0`) or value absence (`null`) has special meaning | `Device.{DNT,Lmt}`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added our new rules for this nilability update and fixed casing of examples to match the object model.

Copy link

@VeronikaSolovei9 VeronikaSolovei9 left a comment

Choose a reason for hiding this comment

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

Is it a way to test it in PBS?
We may have null pointer exceptions because we changed non-pointer variables to pointers.

@SyntaxNode SyntaxNode merged commit c35cfb2 into prebid:main Aug 17, 2023
2 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.

3 participants