FHIR / FHIR/fhir-codegen

Add syntax checks to the deserializer

Đang mở
#57 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Firely
Ngôn ngữ chính
TypeScript
Star
154
Fork
57
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

Mô tả

Currently the deserializer is mostly concerned about the happy path. Add code that does the same checks as the current SDK does:

Xml syntactic checks
* incorrect/empty namespace . P, R:namespace ignored
* empty attributes . P, R: whitespace,null then value=null
* no attribute, no elements P ->S, R:empty child list, value=null SKIP?
* repeating elements inconsecutively P,->S
* Invalid FHIR Xhtml P ->T
* container resources with attributes . P, R:no contained found
* contained resources with attributes . P, R:no contained found
* container resources with multiple children . P, R:no contained found

Json syntactic checks
* incorrect use of null P, R: skip
* incorrect use/combinations of name and _name . P, R: return main
* incorrect use of arrays for name and _name . P, R:return main
* invalid json token type . P: skip unless some useful content found
* empty string values ->T, p:return null
* non-arrays with null values . P, R:return null
* empty objects . P, R:return null
* obsolete fhir_comments use . P, R:skip

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.