-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix(Python): Support orphaned shapes, update Config shape generation #626
Changes from all commits
4e7240e
bf0df25
689cee0
35427ab
04bd5ec
495ee9f
9fc74b6
a8a4555
4c100b5
523e3c3
0d00cd9
6a65d57
f1c3fca
cfe7a3c
3ce6972
21293bf
66f4aa3
ec48abf
d07fcf8
a66909e
e2e5205
18c56cf
0034c85
237feb2
38ff2ef
7602df4
6d2c296
26b0be1
b56c840
1e83075
5f8a83f
d3942f7
21b13a2
fb10473
e79fe41
49cb706
e1de790
139d5e8
121a71b
be0ec9d
67a10e0
24c14a9
6a3e833
ef3040e
a2672bb
91cc535
e7a024a
8d72061
f088d98
cfb9c42
bf8b764
1596a4b
bae78c4
8ced3e8
697d509
f81785d
d52c026
adb8ea8
2e68fdc
458a5b9
09c3cab
fbbd736
d97fdd8
c8129ea
02c7c72
6d4d90b
d62d4b2
f1944b7
435f6bc
aaf7703
aa3f39c
aca1d18
8cc1633
a79d973
288d6ff
58056e9
d3dc8b1
b288469
f5937e0
4f7a90b
3dd18c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,7 +252,7 @@ protected boolean isOptionalDefault(MemberShape member) { | |
&& (target.isDocumentShape() || target.isListShape() || target.isMapShape()); | ||
} | ||
|
||
private void writeClassDocs(boolean isError) { | ||
protected void writeClassDocs(boolean isError) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately, this change means another
on merging this from main, but I think this is better than duplicating the code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm inclined to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea. I'll include this |
||
if (hasDocs()) { | ||
writer.writeDocs(() -> { | ||
shape.getTrait(DocumentationTrait.class).ifPresent(trait -> { | ||
|
@@ -326,7 +326,7 @@ private boolean hasDocs() { | |
return false; | ||
} | ||
|
||
private void writeMemberDocs(MemberShape member) { | ||
protected void writeMemberDocs(MemberShape member) { | ||
member.getMemberTrait(model, DocumentationTrait.class).ifPresent(trait -> { | ||
String memberName = symbolProvider.toMemberName(member); | ||
String docs = writer.formatDocs(String.format(":param %s: %s", memberName, trait.getValue())); | ||
|
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.
❤️