Skip to content

Commit

Permalink
Daemon: ObjectIdentifierMaxLength added to default options
Browse files Browse the repository at this point in the history
  • Loading branch information
hcorg committed Jan 27, 2020
1 parent 3f0babb commit 1ac3999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Service.Implementation/Asn1Service.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Asn1Service() =
Dto.GenerationOptions.TypePrefix = ""
Dto.GenerationOptions.FieldPrefix = CommonTypes.FieldPrefixAuto
Dto.GenerationOptions.RenamePolicy = CommonTypes.EnumRenamePolicy.SelectiveEnumerants
Dto.GenerationOptions.ObjectIdentifierMaxLength = 8
}

interface IAsn1Service with
Expand Down Expand Up @@ -79,8 +80,7 @@ type Asn1Service() =
custom_Stg_Ast_Version = 1
fieldPrefix = match box options.FieldPrefix with | null -> None | _ -> Some(options.FieldPrefix)
targetLanguages = match box options.TargetLanguage with | null -> [defaultOptions.TargetLanguage] | _ -> [options.TargetLanguage]
floatingPointSizeInBytes = 8I
objectIdentifierMaxLength = 8I
objectIdentifierMaxLength = bigint(match options.ObjectIdentifierMaxLength with | 0 -> defaultOptions.ObjectIdentifierMaxLength | _ -> options.ObjectIdentifierMaxLength)
}

member private this.ConvertInput (input:Dto.FileData) : CommonTypes.Input =
Expand Down
1 change: 1 addition & 0 deletions Service/Dto.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type GenerationOptions = {
TypePrefix: string
FieldPrefix: CommonTypes.FieldPrefix
RenamePolicy: CommonTypes.EnumRenamePolicy
ObjectIdentifierMaxLength: int
}

type FileData = {
Expand Down

0 comments on commit 1ac3999

Please sign in to comment.