Skip to content

Commit

Permalink
Added handling of extensions of types
Browse files Browse the repository at this point in the history
Added handling of extensions on complex types.
A few test cases
Handling of free floating elements on the schema level
The ability to flag that eventhough unsupported features are used in the
schema the provider should do it's best to provide a matching type
(useful e.g. when there's a restriction on the valid values of an
otherwise correctly typed property)
  • Loading branch information
runefs committed Apr 15, 2014
1 parent a124bf5 commit 99fac66
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 137 deletions.
4 changes: 2 additions & 2 deletions src/Xml/XmlGenerator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ module internal XmlTypeBuilder =
let typ, _, conv = getTypesForPrimitves ctx false [ primitive ] |> Seq.exactlyOne
{ ConvertedType = typ
Converter = conv }
| InferedType.Constant(n,t,v)
| InferedType.Constant(_,t,v)
| InferedType.Record(Some _, [{ Name = ""
Type = InferedType.Constant(n,t,v)}], false) ->
Type = InferedType.Constant(_,t,v)}], false) ->

let conv = fun _ -> <@@ v @@>
{ ConvertedType = t
Expand Down

0 comments on commit 99fac66

Please sign in to comment.