-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
…ncestor to newest one
Follow C++ design guides, Interface class should be pure abstract
- most oldest ancestors in front - members of structures before their owners
@@ -6,7 +6,6 @@ | |||
// Copyright (c) 2015 Apiary Inc. All rights reserved. | |||
// | |||
|
|||
#include <iterator> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, any particular reason you've moved this down? In most languages it preferred to put system includes before local includes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In short? In C/C++ is preferred place system includes below specific :)
In long:
// file a.h
std::string fn();
// file a.cc
#include <string>
#include "a.h"
std::string fn() { return "hello"; }
a.cc
will be compiled ok
but
// file: b.cc
#include "a.h"
// something...
b.cc
compilation will fail with something like unknown type 'std::string'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that's a good point. It's no longer been a problem in Objective-C with the introduction of clang modules. I completely forgot it's not standard/default across all compilers.
👍
Last commit (103c0bf) is for discussion, it fix problems with schema fixtures, but fixtures definition in schema are not correct. There should be selected one value for Correct implementation is commented out by There still missing one schema to fix. |
Hmm interesting, sent patch (commented out part) fixes #176 :) |
103c0bf
to
324f7ea
Compare
Adding to extend will check if contain members os same type
d71ce17
to
23b49f1
Compare
23b49f1
to
c4e31b0
Compare
Curent status
(member |
- where possible, see issue #202
Fix expanded JSON Schema
@w-vi review addressed. There are no tests :( in current tests implementation it is not possible to prepare test with comparable output. We need implement querying for refract to build tests for similar cases |
My part is done, I think it's ready for merge ... so leaving it to @pksunkara if he has anything to comment on |
BTW why "continuous-integration/appveyor" CI is (again and again) yellow? I mean, we should remove it form CI proces it it does not work. |
We should be relying on the other 2 green things, not the
The yellow one is an issue but hopefully appveyor will fix it soon. We can try to forget about it until then since we need the other CI statuses. |
@pksunkara yes, I know about it. But if I remember it is not working for few months. It is confusing |
I know and I feel the same. 😭 But we really do need the windows CI. 😞 |
|
||
# Date2 (Date1) | ||
## Sample | ||
2012-12-01 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to have 2012-12-02
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, yes. But it is not important, so it can stay as is.
In final inheritance is used sample from Date3
so test is able to check if it is inherited in required way
@klokane Finished review. Just minor stuff to fix. |
- unknown members are now copied into original element - add set of keywords to be ignored while merge
61303e3
to
76ce3eb
Compare
Review addressed, fixedup on to previous commit |
This fixes the build until apiaryio/dredd#319 and apiaryio/drafter#199 are resolved, at which point we can make upgrade and make the changes outlined in https://github.com/contentful/slash-developers/issues/149
Reworked inheritance:
extend
element for inheritance from older ancestor to newestRenderJSONVisitor
ElementMerger
to handle correctly/standardized way inheritance resolveExpandVisitor
IElement
(it now provide just Interface and some helpers)TypeQueryVisitor
(expose enum ast typedef)To be resolved:
(test are created, just needs to added to repository and check if schema is generated correctly)
Resolved issues: