Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Native 1.2, RawJSON -> json.RawMessage, Go 1.8+

Compare
Choose a tag to compare
@mxmCherry mxmCherry released this 03 Mar 08:16
· 152 commits to master since this release

Changes since v9.2.0:

  • OpenRTB Dynamic Native Ads API Specification Version 1.2 implemented (#21)
  • Native enums (Native 1.2/1.1 section 7 Reference Lists/Enumerations + OpenRTB 2.5 section 5.8 Protocols) moved from native/request.* and native/response.* to top-level native.* (#21)
  • switched from custom RawJSON to json.RawMessage (#24)
    WARNING: Switching to json.RawMessage means, that Ext fields will work properly only with Go 1.8+ (older Go versions marshal non-pointer json.RawMessage to base64-encoded string)

Native 1.1 -> 1.2 migration is "back-compatible": fields/enums, that were deprecated/removed in Native 1.2, are kept in this lib (at least till Native 1.3), so this lib still can be used for Native 1.1 integrations.