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

Release 5.0.0-rc.1 #776

Merged
merged 2 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# Drafter Changelog

## 5.0.0 (2020-02-04)
## 5.0.0-rc.1 (2020-03-16)

### Breaking

* Parsing and serialisation options in the C API of Drafter contain breaking
changes. Direct access to the option structures are no longer possible, a new
API layer has been added for the options. See `drafter_init_parse_options`
and `drafter_serialize_options` respectively.

### Enhancements

- [breaking] Modified C API so that drafter options can be added without
breaking the interface in the future.
* Improved support for URI Template. Drafter supports up to, and including
[level 4 of URI Template](https://tools.ietf.org/html/rfc6570#section-1.2).
This includes support for the URI Template explode (`*`) modifier, and
reserved value operator (`+`), and others.

[#553](https://github.com/apiaryio/drafter/issues/553)
[#456](https://github.com/apiaryio/drafter/issues/456)
[#630](https://github.com/apiaryio/drafter/issues/630)
[#666](https://github.com/apiaryio/drafter/issues/666)

* Added support for JSON Schema Draft 7 in schema generation from MSON.
JSON Schemas are now generated using Draft 7 instead of Draft 4.

## 4.1.0 (2019-12-28)

Expand Down
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(Drafter VERSION 5.0.0 LANGUAGES CXX)

set(DRAFTER_VERSION_IS_RELEASE 1)
set(DRAFTER_PRE_RELEASE_VERSION 0)
set(DRAFTER_VERSION_IS_RELEASE 0)
set(DRAFTER_PRE_RELEASE_VERSION rc.1)

configure_file(Version.h.in Version.h)
include_directories(${PROJECT_BINARY_BIN})
Expand Down Expand Up @@ -93,6 +93,8 @@ find_package(cmdline 1.0 REQUIRED)
find_package(MPark.Variant 1.4 REQUIRED)
find_package(pegtl 2.8 REQUIRED)

add_definitions( -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} )

# drafter-dep
# we need it to:
# - expose INTERFACE_INCLUDE_DIRECTORIES for drafter-obj
Expand Down
4 changes: 2 additions & 2 deletions src/Version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
#define DRAFTER_PATCH_VERSION @PROJECT_VERSION_PATCH@

#define DRAFTER_VERSION_IS_RELEASE @DRAFTER_VERSION_IS_RELEASE@
#define DRAFTER_PRE_RELEASE_VERSION @DRAFTER_PRE_RELEASE_VERSION@
#define DRAFTER_PRE_RELEASE_VERSION "@DRAFTER_PRE_RELEASE_VERSION@"

#if DRAFTER_VERSION_IS_RELEASE
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@"
#else
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@-pre.@DRAFTER_PRE_RELEASE_VERSION@"
#define DRAFTER_VERSION_STRING "v@PROJECT_VERSION@-@DRAFTER_PRE_RELEASE_VERSION@"
#endif

#endif
1 change: 0 additions & 1 deletion src/drafter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ DRAFTER_API const char* drafter_version_string(void)
#if defined CMAKE_BUILD_TYPE
return DRAFTER_VERSION_STRING;
#else

return "Non-oficial drafter gyp-based build";
#endif
}